Solved

ColdFusion and Regular Expression

Posted on 2014-02-20
2
302 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
[X]
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
  • 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

This article  is about submitting  form through  ColdFusion.Ajax.submitForm to the action page and send a response back in JSON format which later can be decoded using ColdFusion.JSON.decode. By this way you can avoid the usual page refresh for subm…
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…

759 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