Solved

ColdFusion and Regular Expression

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying 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…
Today, I was working on some optimization and spam-stopping techniques when I encountered Ben Nadel's post to reduce spam feature using Math (http://www.bennadel.com/blog/197-How-I-Stop-Spammers-On-My-ColdFusion-Blog.htm). While this method is not o…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

617 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