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
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
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>", "
> 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
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
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,
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
>> 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,
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
;>>
>>>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
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
> 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
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
>>
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
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
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'
> > >>>
> &
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:
>&
>> > 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
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
<[EMAIL PROTECTED]> wrote:
> Try this:
>
> ">
>
> ]*)>","<\1>","ALL")>
>
> How would I turn it into:
>
>
>
> using REReplaceNoCase...
>
> This effort chokes:
>
> temp = < font color="white"
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="
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
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
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
--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
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
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]
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
;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
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
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:
> 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
: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
.:.:.:.:.:.:.:.:.:.
>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
.:.:.:.:.:.:.:.:.:.
>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
35 matches
Mail list logo