Re: REReplaceNoCase and dynamic query columns

2010-02-02 Thread Peter Boughton
Is it possible to dynamically evaluate the temp variable from the regular expression and use it as a ColdFusion variable? It's not a temp variable from the regular expression, it is a variable which exists *within the scope* of that regular expression. That's important to understand - given

RE: reReplaceNoCase() problem from a newbie, please help

2007-06-14 Thread Bobby Hartsfield
Try this one out. rereplace(dataContent, img.*?src=['||](.*?)['|| |].*?, \1, all) ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Jide Aliu [mailto:[EMAIL PROTECTED] Sent: Thursday, June 14, 2007 5:46 AM To: CF-Talk Subject:

Re: reReplaceNoCase() problem from a newbie, please help

2007-06-14 Thread Jide Aliu
Thanks Bobby for taking time out for the solution, that did the trick. It's the start of my problem on the solution though how would you go about reReplacing the same item with the tags below in a body of text/string. Is it at all possible or should I be looking at something different from

RE: reReplaceNoCase() problem from a newbie, please help

2007-06-14 Thread Bobby Hartsfield
-Original Message- From: Jide Aliu [mailto:[EMAIL PROTECTED] Sent: Thursday, June 14, 2007 10:44 AM To: CF-Talk Subject: Re: reReplaceNoCase() problem from a newbie, please help Thanks Bobby for taking time out for the solution, that did the trick. It's the start of my problem on the solution though

Re: reReplaceNoCase() problem from a newbie, please help

2007-06-14 Thread Jide Aliu
:44 AM To: CF-Talk Subject: Re: reReplaceNoCase() problem from a newbie, please help Thanks Bobby for taking time out for the solution, that did the trick. It's the start of my problem on the solution though how would you go about reReplacing the same item with the tags below in a body of text/string

Re: reReplaceNoCase() problem from a newbie, please help

2007-06-14 Thread Jide Aliu
:44 AM To: CF-Talk Subject: Re: reReplaceNoCase() problem from a newbie, please help Thanks Bobby for taking time out for the solution, that did the trick. It's the start of my problem on the solution though how would you go about reReplacing the same item with the tags below in a body of text/string

Re: REReplaceNoCase

2006-10-26 Thread Rob Wilkerson
Yep, that should work. Assuming #context# is a variable string containing HTML and you're setting the return value int a variable: cfset context = REReplaceNoCase(context,[^]*,,ALL) / Is it stripping no HTML, some HTML? Is it erroring? On 10/26/06, Les Irvin [EMAIL PROTECTED] wrote: Dang,

RE: REReplaceNoCase

2006-10-26 Thread Munson, Jacob
I just tested it and it works for me. -Original Message- From: Rob Wilkerson [mailto:[EMAIL PROTECTED] Sent: Thursday, October 26, 2006 4:35 PM Yep, that should work. Assuming #context# is a variable string containing HTML and you're setting the return value int a variable:

Re: ReReplaceNoCase

2005-09-21 Thread Barney Boisvert
Try REreplace(sql, ('[^']*'), strong$1/strong, all) That says find an apsotrophe, followed by any number of non-apostrophe characters, and then another apostrophe and replace it with itself, surrounded by STRONG tags. cheers, barneyb On 9/21/05, Ryan Guill [EMAIL PROTECTED] wrote: hey guys,

Re: ReReplaceNoCase

2005-09-21 Thread Ryan Guill
no, that puts just $1 in there, it doesnt fill it in... am I doing something wrong? cfset out = REreplace(out, ('[^']*'), strong class=paren$1/strong, all) / On 9/21/05, Barney Boisvert [EMAIL PROTECTED] wrote: Try REreplace(sql, ('[^']*'), strong$1/strong, all) That says find an apsotrophe,

Re: ReReplaceNoCase

2005-09-21 Thread S . Isaac Dealey
Just be sure to htmleditformat() the string before you perform the regex if you're planning to use this for say web-based syntax highlighting. :) Try REreplace(sql, ('[^']*'), strong$1/strong, all) That says find an apsotrophe, followed by any number of non-apostrophe characters, and then

Re: ReReplaceNoCase

2005-09-21 Thread Ryan Guill
Hey I tried \1 instead of $1 and it looks like its working! Going to test more to make sure... im sorry, htmleditformat()? why would I need that again? On 9/21/05, S. Isaac Dealey [EMAIL PROTECTED] wrote: Just be sure to htmleditformat() the string before you perform the regex if you're

Re: ReReplaceNoCase

2005-09-21 Thread Rick Root
I think he meant \1 not $1 Rick Ryan Guill wrote: no, that puts just $1 in there, it doesnt fill it in... am I doing something wrong? cfset out = REreplace(out, ('[^']*'), strong class=paren$1/strong, all) / On 9/21/05, Barney Boisvert [EMAIL PROTECTED] wrote: Try REreplace(sql,

Re: ReReplaceNoCase

2005-09-21 Thread Ryan Guill
yeah, the \1 works. Now, how can I do the same thing, only this time looking for ( and ) surrounding the text? My first attempts havent worked... On 9/21/05, Rick Root [EMAIL PROTECTED] wrote: I think he meant \1 not $1 Rick Ryan Guill wrote: no, that puts just $1 in there, it doesnt

Re: ReReplaceNoCase

2005-09-21 Thread S . Isaac Dealey
Hey I tried \1 instead of $1 and it looks like its working! Going to test more to make sure... Oops! Sorry, I didn't notice that in Barney's post... $ is used by Dreamweaver, JavaScript and I think ActionScript 2.0 (I believe it's part of the ECMA standard) to indicate a back-reference...

Re: ReReplaceNoCase

2005-09-21 Thread S . Isaac Dealey
( and ) need to be escaped... cfset out = REReplace(out,(\([^)]*\)),strong\1/strong) yeah, the \1 works. Now, how can I do the same thing, only this time looking for ( and ) surrounding the text? My first attempts havent worked... On 9/21/05, Rick Root [EMAIL PROTECTED] wrote: I think

Re: ReReplaceNoCase

2005-09-21 Thread Ryan Guill
im displaying a pre and this is only for sql code right now so that shouldnt be a problem, but ill definately keep that in mind. by the way, I did get the parenthesis to work: cfset out = REreplace(out, (\([^']*\)), strong class=paren\1/strong, all) / On 9/21/05, S. Isaac Dealey [EMAIL

RE: ReReplaceNoCase

2005-09-21 Thread Andy Matthews
-Talk Subject: Re: ReReplaceNoCase yeah, the \1 works. Now, how can I do the same thing, only this time looking for ( and ) surrounding the text? My first attempts havent worked... On 9/21/05, Rick Root [EMAIL PROTECTED] wrote: I think he meant \1 not $1 Rick Ryan Guill wrote

Re: ReReplaceNoCase

2005-09-21 Thread Qasim Rasheed
Taking from Barney's example REreplace(sql, (\([^\(|^\)]*\)), strong$1/strong,all) On 9/21/05, Ryan Guill [EMAIL PROTECTED] wrote: yeah, the \1 works. Now, how can I do the same thing, only this time looking for ( and ) surrounding the text? My first attempts havent worked... On 9/21/05,

Re: ReReplaceNoCase

2005-09-21 Thread Ben Doom
Inside a class, you don't need to escape parens, use the or pipe, or re-use the not ^. This is, I think, what you want: REreplace(sql, (\([^()]*\)), strong\1/strong,all) --Ben Qasim Rasheed wrote: Taking from Barney's example REreplace(sql, (\([^\(|^\)]*\)), strong$1/strong,all) On

Re: ReReplaceNoCase

2005-09-21 Thread S . Isaac Dealey
im sorry, htmleditformat()? why would I need that again? To make sure that if the query has a or in it that those characters are converted to html entities before they're displayed... otherwise, a query like this: select * from table where x #x# and y #y# will display in the

RE: ReReplaceNoCase problem

2002-01-25 Thread Steve Oliver
Try this: cfset string= font color=white cfset newstring=rereplacenocase(string, ([^]*),\1,ALL) __ steve oliver cresco technologies, inc. http://www.crescotech.com -Original Message- From: Eddie Shipman [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002

RE: ReReplaceNoCase problem

2002-01-25 Thread Eddie Shipman
Even though I sent the message in plaintext... the text that was sent in the message didn't come out correct... This text, #60; font color=#34;white#34;#62; was supposed to be: #38;#35;60;font color=#38;#35;34;white#38;#35;34;#38;#35;62; I want it changed to: font color=white --- Steve

RE: ReReplaceNoCase problem

2002-01-25 Thread Steve Oliver
. ## for # and for __ steve oliver cresco technologies, inc. http://www.crescotech.com -Original Message- From: Eddie Shipman [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 5:07 PM To: CF-Talk Subject: RE: ReReplaceNoCase problem Even though I sent the message in plaintext

RE: ReReplaceNoCase is too greedy question

2000-04-24 Thread Paul Wakefield
Instead of: "%%(.+)%%" try: "%%([^%]+)%%" "%%, followed by one or more characters that don't match %, followed by %%" -- Paul Wakefield All opinions expressed herein are those of the author and not of The Board of Executors -Original Message- From: [EMAIL

RE: ReReplaceNoCase is too greedy question

2000-04-24 Thread Chris . Austin
Thank you very much for your help. That worked out really well... Best regards, Chris A. -Original Message- From: Paul Wakefield [mailto:[EMAIL PROTECTED]] Sent: Monday, April 24, 2000 12:34 AM To: '[EMAIL PROTECTED]' Subject: RE: ReReplaceNoCase is too greedy question Instead