Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

ColdFusion and Regular Expression

Posted on 2014-02-20
2
296 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

PROBLEM: How to add your own buttons to the bottom toolbar with paging info ( result count ). While creating a cfgrid, I ran into an issue where I wanted to embed my own custom buttons where the default ones ( insert / delete / etc… ) are for aes…
CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

828 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