Solved

ColdFusion and Regular Expression

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

Suggested Solutions

Title # Comments Views Activity
RETURN INFORMATION FROM COLDFSION CFC 1 76
Detect and combat possible robot 7 119
coldfusion, javascript onclick url update 4 65
coldfusion cfloop help 6 36
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…
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 …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

756 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