Solved

ColdFusion and Regular Expression

Posted on 2014-02-20
2
285 Views
Last Modified: 2014-03-21
I have this 2 lines of code, can I combine in on RegEx?

<cfset hotspotDesc = REReplaceNoCase(attributes.pageinfo.gt_GroupTitle,'<[^>]*>','','ALL') >
<cfset hotspotDesc = REReplaceNoCase(hotspotDesc ,'"','','ALL') >

Open in new window

0
Comment
Question by:Medrise
  • 2
2 Comments
 
LVL 25

Accepted Solution

by:
dgrafx earned 500 total points
ID: 39876577
<cfset hotspotDesc = REReplaceNoCase(REReplaceNoCase(attributes.pageinfo.gt_GroupTitle,'<[^>]*>','','ALL') ,'"','','ALL') >
0
 
LVL 25

Expert Comment

by:dgrafx
ID: 39945209
should add trim() too i guess

trim(REReplaceNoCase(trim(REReplaceNoCase(attributes.pageinfo.gt_GroupTitle,'<[^>]*>','','ALL')) ,'"','','ALL') )
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Hi, Even though I have created this Tutorial on My personal Blog, Some people might not able to find my website, So here i am posting it again Today, from the topic it is very clear that i will be showing you here the very basic usage of how we …
Recently while working on a project I got a very annoying cfdocument has no body error message. I had never seen this error before. So I checked the code. The code was pretty simple; it was Just showing me the cfdocumnt tag and inside that tag a …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now