REReplaceNoCase

2006-10-26 Thread Les Irvin
Dang, I'm confused. Will this function strip all the html code from a document, including that in between the brackets? REReplaceNoCase(context,"<[^>]*>","","ALL") It doesn't seem to be working. Or I've screwed up the

ReReplaceNoCase

2005-09-21 Thread Ryan Guill
surrounded by tags. so take the string above, look for single quotes and make it like this: SELECT * FROM sometable WHERE this = 'this string' (thats not exactly what I want to do, but close enough.) how would you go about doing this with rereplacenocase? is it even possible? al

ReReplaceNoCase problem

2002-01-25 Thread Eddie Shipman
I have this text: < font color="white"> How would I turn it into: using REReplaceNoCase... This effort chokes: temp = < font color="white">" REReplaceNoCase(temp, "&##60;(font[^62]&(&##62;)", "<\1>", "

Re: REReplaceNoCase

2006-10-26 Thread Rob Wilkerson
> Dang, I'm confused. Will this function strip all the html code from a > document, including that in between the brackets? > > REReplaceNoCase(context,"<[^>]*>","","ALL") > > It doesn&#x

RE: REReplaceNoCase

2006-10-26 Thread Munson, Jacob
rn value int a variable: > > ]*>","","ALL") /> > > Is it stripping no HTML, some HTML? Is it erroring? > > On 10/26/06, Les Irvin <[EMAIL PROTECTED]> wrote: > > Dang, I'm confused. Will this function strip all the html &g

Re: ReReplaceNoCase

2005-09-21 Thread Barney Boisvert
ant to replace the single quotes AND its contents with the same > things only surrounded by tags. so take the string above, > look for single quotes and make it like this: > > SELECT * FROM sometable WHERE this = 'this string' > > (thats not exactly what I want to do,

Re: ReReplaceNoCase

2005-09-21 Thread Ryan Guill
e single quotes AND its contents with the same > > things only surrounded by tags. so take the string above, > > look for single quotes and make it like this: > > > > SELECT * FROM sometable WHERE this = 'this string' > > > > (thats not exactly what I w

Re: ReReplaceNoCase

2005-09-21 Thread S . Isaac Dealey
>> with the same >> things only surrounded by tags. so take the >> string above, >> look for single quotes and make it like this: >> >> SELECT * FROM sometable WHERE this = 'this >> string' >> >> (thats not exactly what I want to do,

Re: ReReplaceNoCase

2005-09-21 Thread Ryan Guill
t; and I want to replace the single quotes AND its contents > >> with the same > >> things only surrounded by tags. so take the > >> string above, > >> look for single quotes and make it like this: > >> > >> SELECT * FROM sometable WHERE this

Re: ReReplaceNoCase

2005-09-21 Thread Rick Root
;>> >>>Lets say I have the following sql code: >>> >>>SELECT * FROM sometable WHERE this = 'this string' >>> >>>and I want to replace the single quotes AND its contents with the same >>>things only surrounded by tags. so take the

Re: ReReplaceNoCase

2005-09-21 Thread Ryan Guill
gt;>have a question about it now. > >>> > >>>Lets say I have the following sql code: > >>> > >>>SELECT * FROM sometable WHERE this = 'this string' > >>> > >>>and I want to replace the single quotes AND its content

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... Col

Re: ReReplaceNoCase

2005-09-21 Thread S . Isaac Dealey
bout it now. >> >>> >> >>>Lets say I have the following sql code: >> >>> >> >>>SELECT * FROM sometable WHERE this = 'this string' >> >>> >> >>>and I want to replace the single quotes AND its >>

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: \1", "all") /> On 9/21/05, S. Isaac Dealey <[EMAIL PROTECTED]> wrote: > > Hey I tried \1 instead of $1 and it looks like

RE: ReReplaceNoCase

2005-09-21 Thread Andy Matthews
You'll have to escape the (). So \( and \). -Original Message- From: Ryan Guill [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 21, 2005 2:28 PM To: CF-Talk Subject: Re: ReReplaceNoCase yeah, the \1 works. Now, how can I do the same thing, only this time looking for

Re: ReReplaceNoCase

2005-09-21 Thread Qasim Rasheed
really simple cases. But > > >>>have a question about it now. > > >>> > > >>>Lets say I have the following sql code: > > >>> > > >>>SELECT * FROM sometable WHERE this = 'this string' > > >>> > &

Re: ReReplaceNoCase

2005-09-21 Thread Ben Doom
gt;>>>>hey guys, >>>>>> >>>>>>not ever really used regex much except for really simple cases. But >>>>>>have a question about it now. >>>>>> >>>>>>Lets say I have the following sql code: >&

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

RE: ReReplaceNoCase problem

2002-01-25 Thread Steve Oliver
Try this: "> ]*)>","<\1>","ALL")> __ steve oliver cresco technologies, inc. http://www.crescotech.com -Original Message- From: Eddie Shipman [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 4:51 PM To: CF-T

RE: ReReplaceNoCase problem

2002-01-25 Thread Eddie Shipman
<[EMAIL PROTECTED]> wrote: > Try this: > > "> > > ]*)>","<\1>","ALL")> > > How would I turn it into: > > > > using REReplaceNoCase... > > This effort chokes: > > temp = < font color="white"

RE: ReReplaceNoCase problem

2002-01-25 Thread Steve Oliver
ssage- 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... the text that was sent in the message didn't come out correct... This text, < font color="

ReReplaceNoCase is too greedy question

2000-04-23 Thread Chris . Austin
Hi, I am trying to do a regular express that will replace all defined areas of a text file with a blank. ie.. City, State, Zip:Aurora, California, 80013 Relocation Date (Generally same as start date): 12/31/ Relocation Category:_%%TestField%% blah blah blah blah %%NextField%% My

Replace content between tags (REReplaceNoCase)

2006-12-05 Thread Markus Weber
Hello guys, i have a problem with the following regex: REReplaceNoCase(inputxml,"]*>(.*)<\/text>","") The regex should replace the tag with all the content inside (even other tags). It works fine if only one ... is in the whole string. But if theres a second

REReplaceNoCase and dynamic query columns

2010-02-01 Thread Andy Matthews
d the color column from the query. I'm trying to use REReplaceNoCase to find the key, and replace it with the value. It "almost" works, but I can't seem to get it the last 5%. Here's some sample code Is it possible to do this in one line? I'm SO clos

RE: ReReplaceNoCase is too greedy question

2000-04-23 Thread Paul Wakefield
--Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 21, 2000 10:08 PM > To: [EMAIL PROTECTED] > Subject: ReReplaceNoCase is too greedy question > > > Hi, > > I am trying to do a regular express that will replace all > defi

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

RE: Replace content between tags (REReplaceNoCase)

2006-12-05 Thread Russ
Hmm... CF regex is known for being greedy, and I believe you need to append a ? to make it not greedy. So try something like this REReplaceNoCase(inputxml,"]*?>(.*?)<\/text>","") Russ > -Original Message- > From: Markus Weber [mailto:[EMAIL PROTECTED]

RE: Replace content between tags (REReplaceNoCase)

2006-12-05 Thread Ben Nadel
Try doing a NON-greedy search by putting a ? After your selector: REReplaceNoCase( inputxml, "]*>(.*?)<\/text>", "", "ONE" ) Notice, (.*?) this should match the shortest possible string. .. Ben

Re: REReplaceNoCase and dynamic query columns

2010-02-02 Thread Peter Boughton
;s important to understand - given this expression: REReplaceNoCase(REQUEST.theURL, '%%(\w+)%%', "#REQUEST.myQ[/\1][1]#", 'ALL') The CF expression is evaluated *before* the regex does its stuff, and thus the \1 never enters the regex 'scope', and doesn't

reReplaceNoCase() problem from a newbie, please help

2007-06-14 Thread Jide Aliu
I have a body of text, in the body of text I want to replace all image tags with the value of the src attribute, so for example below "This is the body it can be as long as 8,000 character but within the body here is the image tag and here I go blah blah another image tag with a different valu

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

2007-06-14 Thread Bobby Hartsfield
Try this one out. rereplace(dataContent, "", "\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
> rereplace(dataContent, "", "\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

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

2007-06-14 Thread Bobby Hartsfield
: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. I

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

2007-06-14 Thread Jide Aliu
.:.:.:.:.:.:.:.:.:. >Bobby Hartsfield >http://acoderslife.com > > >-----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 > >Thank

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

2007-06-14 Thread Jide Aliu
.:.:.:.:.:.:.:.:.:. >Bobby Hartsfield >http://acoderslife.com > > >-----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 > >Thank