Perhaps something like this:
newstring = "Join the CF-RegEx list for Happy Fun RegEx Help in a Bottle.";
content = rereplace(content, '---Test---.*---Test---', newstring);
This assumes that the test string appears only once in the text. If it
appears multiple times, it gets a bit more complicate
- Original Message -
From: "Chris Alvarado" <[EMAIL PROTECTED]>
> ---Test---
>
> Abc 123 Easy
>
> ---Test---
>
> I need to not only replace the "Abc 123 Easy" text, but also replace
> both the beginning "---Test---" and the ending "---Test--" but nothing
> prior to the beginning and nothing
m/[^(this|that|\s)]/ig
Anything other than --> this that spaces
On Fri, 20 Sep 2002, Brook wrote:
> How do you write a regular expression which checks a string for any
> characters/words other than a specified few and returns true if there are
> ANY other characters in the string.
>
> Brook
>
Interesting. RegEx is an art I really need to learn more thouroughly. Thank :)
At 01:47 PM 20/09/02 -0400, you wrote:
>m/[^(this|that|\s)]/ig
>
>Anything other than --> this that spaces
>
>
>On Fri, 20 Sep 2002, Brook wrote:
>
> > How do you write a regular expression which checks a string for a
That's PERL right? ...
CF is going to be slightly different...
I think is equivalent... If not...
Brook: you might find the [EMAIL PROTECTED] list helpful
incidentally...
> m/[^(this|that|\s)]/ig
> Anything other than --> this that spaces
> On Fri, 20 Sep 2002, Brook wrote:
>> How do y
Which version of CF? Characters are easy, words are a bit harder.
In CF5:
Rather than looking for illegal words, it's easier to look for the words you
allow, legal separaters, etc. and negate the answer:
...do stuff...
Be careful about the dash in delimiters (if you use it) because
orms a class. What're inside are
treated as individual characters, not words/groups/etc.
--Ben Doom
Programmer & General Lackey
Moonbow Software
: -Original Message-
: From: Alex [mailto:[EMAIL PROTECTED]]
: Sent: Friday, September 20, 2002 1:47 PM
: To: CF-Talk
: S
grouping structure forms a class. What're inside are
> treated as individual characters, not words/groups/etc.
> --Ben Doom
> Programmer & General Lackey
> Moonbow Software
> : -Original Message-
> : From: Alex [mailto:[EMAIL PROTECTED]]
> :
de are
> > treated as individual characters, not words/groups/etc.
>
>
> > --Ben Doom
> > Programmer & General Lackey
> > Moonbow Software
>
> > : -Original Message-
> > : From: Alex [mailto:[EMAIL PROTECTED]]
> > : Sent: Fr
: I thought there was something squirrelly about that expression... I'm
: probably still learning regex myself... It's one of those things
: that really
: seems to take a while to grok.
I've been doing regex for about 4 years now and I /still/ see new tricks and
stuff. Kinda like the game Othell
On Friday, September 20, 2002, at 07:12 PM, Ben Doom wrote:
> Personally, I like them. I've never been one to worry too much about
> efficiency when something gets the job done well. Regex is powerful
> as all
> hell and both subtle and easy to use.
>
>
There are those who claim that an effic
Ben, Thanks for the tips on the reg ex. I have it working it working,
sorta. Its strange, if there is no match, it works. If there is a match it
generates an error. Using CFMX, here is my code. If you remove drop table,
it causes an error. I'm gonna wrap it in a try/catch statement if nothing
:
:
This looks kinda funny to me. You are allowing "filterfilter9" but not
"filter19" -- is this what you meant?
Assuming the legal words are 'and or not filterx" where x is a number, I
think you want to use:
Bad string
good string
In any case, when I changed the if/endif with the to an
Oliver,
Try something like this:
]*>", "",
"ALL")>
Thanks,
André
-Original Message-
From: Oliver Cookson [mailto:[EMAIL PROTECTED]
Sent: 14 March 2003 11:13
To: CF-Talk
Subject: SOT: RegEx Help!
Any ninja's out there? ;)
Im having trouble with a regular expression i wonder if anyone
If you need urgent help on javascript, I would recommend the #javascript
IRC group on efnet, I have had some very good responses there, and people
don't seem to mind that you just drop in and ask a question.
Hugo
~|
Archives:
Again, see Jochem and my posts. This regex is for non-specific tags -- it
removes them all. Jochem had it right for a constricted context (where the
text you gave was the only thing there) and I suggested a modification for
if the context was a full page.
-- Ben Doom
Programmer & General L
What you're talking about is backreferencing, pg. 19 of "Mastering RegEx".
;) This is also covered briefly in the latest Cold Fusion Web Application
Const. Kit by Forta, et al. Without knowing more about what you're trying to
do, or an example string, I can't really say more on that, mainly 'cause
I'm not sure if this will help, but try nesting your functions the other way
so the RegEx gets applied before the HTMLCodeFormat, or if that doesn't
work, do it the other way :OP
Ade
-Original Message-
From: Michael Tangorre [mailto:[EMAIL PROTECTED]
Sent: 05 June 2003 13:03
To: CF-Talk
S
^ is start of string, $ is end of string, so it looks like you've got these
aroung the wrong way. Secondly, you want everything between but not
including the <%--- ---%> right? So put the parentheses *inside*
How about this:
result = REreplace(cfhttp.fileContent,"^.*<%---(.*)---%>.*$","\1")
Rega
]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, June 05, 2003 8:11 AM
Subject: RE: Regex Help
> I'm not sure if this will help, but try nesting your functions the other
way
> so the RegEx gets applied before the HTMLCodeFormat, or if that doesn't
> work
Assuming the RegEx works, at what point have you been using
HTMLCodeFormat()?
-Original Message-
From: Michael Tangorre [mailto:[EMAIL PROTECTED]
Sent: 05 June 2003 13:13
To: CF-Talk
Subject: Re: Regex Help
sorry that the code got all scrunched together.. let me try posting the code
in1 should be testNum, I typed it in wrong...
- Original Message -
From: "Michael T. Tangorre" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, June 16, 2003 1:44 PM
Subject: regex help
> I am trying to determine if an integer begins with 332.
>
> The number varies i
^332 ---> look for a string with 332 at the beginning
([0-9]*) Look for all remaining digits after that.
Marlon
-Original Message-
From: Michael T. Tangorre [mailto:[EMAIL PROTECTED]
Sent: Monday, June 16, 2003 12:44 PM
To: CF-Talk
Subject: regex help
I am trying to determine if an
ubject: Re: regex help
in1 should be testNum, I typed it in wrong...
- Original Message -
From: "Michael T. Tangorre" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, June 16, 2003 1:44 PM
Subject: regex help
> I am trying to determine
Thank you for the help, explanation and link. I will check that out for
sure.
Mike
- Original Message -
From: "Marlon Moyer" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, June 16, 2003 1:55 PM
Subject: RE: regex help
> Mich
Too bad it does not install on W2K.
:`(
-Original Message-
From: Marlon Moyer [mailto:[EMAIL PROTECTED]
Sent: Monday, June 16, 2003 12:55 PM
To: CF-Talk
Subject: RE: regex help
Michael,
I also use this program to help test regex's. It's quicker than using cf
most of the t
I've had it running on win2k before. You have to run it in the win95
compatibility mode.
Marlon
-Original Message-
From: Greg McDaniel [mailto:[EMAIL PROTECTED]
Sent: Monday, June 16, 2003 1:10 PM
To: CF-Talk
Subject: RE: regex help
Too bad it does not install o
I just noticed that as well. :-(
- Original Message -
From: "Greg McDaniel" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, June 16, 2003 2:10 PM
Subject: RE: regex help
> Too bad it does not install on W2K.
> :`(
>
&g
Um. This showed up after some responses, but I never saw an answer, so here
goes...
testnum = rereplace(testnum, "^332([0-9]*)", "\1");
This assumes that testnum is an int to begin with, so you should probably
test for that first.
If you have any questions about why this works or whatnot, or ne
'^(+-)? *[0-9.]+$'
defined:
^ - start of the string
(+-)? - might have a plus or minus
* -may have 0 or more spaces from the start of the string OR from the plus or minus
(if it exists)
[0-9]+ - one or more numbers
$ - end of the string.
A string that starts with a plus or minus and only contai
: '^(+-)? *[0-9.]+$'
This accepts multiple decimal points. I try to stick with one per number.
:-)
I would use something more like:
'^[[:space:]]*(+-)?[[:space:]]*[0-9]+(\.[0-9]+)?[[:space:]]*$'
I'm not sure about the [[:space:]]'s -- you might want to just allow spaces
and tabs rather than vt
rereplace(mystring, "(\ \par)([^[:space:]])",
"\1 \2", "all")
-Original Message-
From: Deanna Schneider [mailto:[EMAIL PROTECTED]
Sent: donderdag 11 december 2003 15:25
To: CF-Talk
Subject: regex help
Hi All,
I'm trying to write a regex that does the following:
Looks for any instance of
Trying to parse RTF files, eh?
I think the \ character needs to be escaped.
rereplace(mystring, "\\par([[::alnum::]]+)", "\par \1", "all")
Not sure, though.
Jerry Johnson
>>> [EMAIL PROTECTED] 12/11/03 09:25AM >>>
Hi All,
I'm trying to write a regex that does the following:
Looks for any insta
due to Outlook, this doesn't look right. It should be :
"(\\par)([^[:space:]])"
-Original Message-
From: Pascal Peters
Sent: donderdag 11 december 2003 15:31
To: CF-Talk
Subject: RE: regex help
rereplace(mystring, "(\ \par)([^[:space:]])",
"\1 \2"
is still
followed by a space so it gets read as a \par and still shows the next word.
- Original Message -
From: "Pascal Peters" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, December 11, 2003 8:31 AM
Subject: RE: regex help
>
" <[EMAIL PROTECTED]>
Sent: Thursday, December 11, 2003 8:41 AM
Subject: RE: regex help
> due to Outlook, this doesn't look right. It should be :
> "(\\par)([^[:space:]])"
> -Original Message-
> From: Pascal Peters
> Sent: donderdag 11 december 2003 15:
- Original Message -
> From: "Pascal Peters" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Thursday, December 11, 2003 8:41 AM
> Subject: RE: regex help
>
> > due to Outlook, this doesn't look right. It should be :
&g
On MX only:
rereplace(mystring, "(\\par)(?!\s)", "\1 ", "all")
On CF5, run it twice.
-Original Message-
From: Deanna Schneider [mailto:[EMAIL PROTECTED]
Sent: donderdag 11 december 2003 15:58
To: CF-Talk
Subject: Re: regex help
Hm...this works sort of, b
Try looking in the Regular _expression_ Library
(http://www.regxlib.com/Default.aspx)
They have over 450 RegEx's so hopefully you will be able to find something.
Peter Tilbrook
Transitional Services - Enterprise eSolutions
Centrelink (http://www.centrelink.gov.au)
2 Faulding Street
Symonston ACT
With regular expressions, it tends to much, much harder to say "do this
when a condition is false" than "do this when a condition is true".
One option that would at least fix the problem with the scripts (though
not the textareas or the PRE blocks) would be to replace [[:space:]]
with a class o
.
The client has strict bandwidth utilisation rules, so anything I can do to
drop the page size is important.
Thanks for your help.
Ryan
-Original Message-
From: Ben Doom [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 7 January 2004 2:24 AM
To: CF-Talk
Subject: Re: Regex Help
With re
size is important.
>
> Thanks for your help.
>
> Ryan
>
> -Original Message-
> From: Ben Doom [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 7 January 2004 2:24 AM
> To: CF-Talk
> Subject: Re: Regex Help
>
> With regular expressions, it tends to much
Ben Doom wrote:
> Might I suggest wrapping chunks of code that produce no output (ie
> application.cfm, onrequestend.cfm, CFQUERY's, etc) in CFSILENT tags?
In addition, just before the tag (or the tag),
include a cfcontent with the reset attribute enabled. That will
reset the output buffer a
^(\w+([\.-]?\w+)[EMAIL PROTECTED]([\.-]?\w+)*(\.\w{2,3})+)?$
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
At 11:10 AM 1/20/2004 -0400, you wrote:
>Hey All,
>
>I'm Looking for Regex to validate that an email has an @ symbol and
>that there is no invalid character's
>
>Thanks,
>
>Trevor Holm-Laursen
Depending on what version of CF, I would recommend you go to cflib.org.
The site is down right now thoug
check the exchange or cflib when it is back up.
there are several tags/udfs that do this.
HTH,
Josh
---
Exciteworks -- expert hosting for less!
http://exciteworks.com
reseller plans available
Trevor Holm-Laursen wrote:
> Hey All,
>
> I'm Looking for Regex to validate that an email has an @
Trevor,
On 1/20/2004 at 10:10, you wrote:
THL> I'm Looking for Regex to validate that an email has an @ symbol and
THL> that there is no invalid character's
This has worked well for me:
function iswellformedemail(email){
if(refindnocase("^['_a-z0-9-]+(\.[_a-z0-9-]+)[EMAIL PROTECTED](\.
Actually, you're getting pretty close.
Assuming the "b0" bit is static
"\{\\b0 \{\\\*\\bkmkstart bookmark_name\}"
Untested, YMMV.
However, this doesn't use any of the magic of regex. In other words,
replace() will be faster on this than rereplace(). If "bookmark_name"
or "b0" was variab
Solved. The regex I'm using now is
\{\\b0 \{\\\*\\bkmkstart bookmark_name\}
Guess I was close.
Thanks though.
Shawn
-Original Message-
From: Shawn Grover [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 3:33 PM
To: CF-Talk
Subject: Regex Help?
I have routine that
You can't use * by itself. It needs to apply to something. Try
.*
Regards,
Matthew Walker
/*
Easier, smarter forms:
http://www.matthewwalker.net.nz/inform2
*/
> -Original Message-
> From: Ian Lurie [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 4 June 2002 10
Ah. I tried that before as *. - switching the two characters did the
trick.
Thanks!
Any good sites/books out there about RegEx?
-Original Message-
From: Matthew Walker [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 3:44 PM
To: CF-Talk
Subject: RE: REGEX help
You can'
Hi Rich,
Many thanks!! Worked like a charm!
Cheers
David
-Original Message-
From: Rich Wild [mailto:[EMAIL PROTECTED]]
Sent: 05 July 2002 16:50
To: CF-Talk
Subject: RE: Regex help
try this (watch out for e-mail wrapping):
This is some test text.
I just want the http
> How would I write a expression to replace $2,345.00 with 2345
Here's one way to do it:
That _should_ work. :)
Ben Johnson
__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetp
> How would I write a expression to replace $2,345.00 with
> 2345
REReplace(listfirst(mystring,"."),"[^[:digit:]]","","ALL")
will eliminate decimal places and strip all non-numeric characters from a
string...
Isaac
www.turnkey.to
954-776-0046
__
there's a great regex tutorial on house of fusion.
ken
-Original Message-
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 05, 2002 2:35 PM
To: CF-Talk
Subject: Re: REgex help
> How would I write a expression to replace $2,345.00 with
> 2345
REReplac
Try this: (although I haven't tested it properly)
#this#
> -Original Message-
> From: Tony Schreiber [mailto:[EMAIL PROTECTED]]
> Sent: 12 September 2001 15:27
> To: CF-Talk
> Subject: SOT: Regex Help
>
>
> I get these text files that I process with CFHTTP (that part
> works ver
I believe this will do it for you - but I haven't had a lot of time to
test it:
x is now #X#
===
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia
Email: [EMAIL PROTECTED]
Yahoo IM : morpheus
"My all
Bernd VanSkiver wrote:
> Got a Regular Expression problem that I can't figure out how to solve.
> Below are two possible strings that could be send to my replace function.
> The order of the atributes could be in any order and the domain name and
> file name will also be different in each case.
>
The main problem is that you are trying to use a character expression when
you need to match a multicharter expression. I would probably do this in
multiple passes.
In the first pass do say:
st=rereplacenocase(st,'src="http://','src="|","all");
this will replace all http with a | symbol ( if yo
why use regular expressions?
try:
of if you can't use IF statements for some reason:
+---+
Bryan Love
Macromedia Certified Professional
Internet Application Developer
Database Analyst
Telecomunication Systems
[EMAIL PROTECTED]
+--
Troy Simpson wrote:
> I want to find all items in a list that begin with an "I" and followed
> by digits only.
> Is there a global options in REFindNoCase function so that I can run it
> once and then loop throught the pos and len arrays?
>
>
>
> #ArrayLen( x.pos )# -- This should return 4,
>
Probably easier to use listToArray(text, chr(10)) and then you can iterate
over the array (each element containing one line).
Cheers,
barneyb
> -Original Message-
> From: Ray Bujarski [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 22, 2004 10:56 AM
> To: CF-Talk
> Subject: Regex help
>
this one should work:
"(?m)^.*$"
from the cfdocs:
(?m)
If at the beginning of a regular _expression_, it specifies the multiline
mode for the special characters ^ and $.
When used with ^, the matched string can be at the start of the of
entire search string or at the st
Thanks! I think you are right.
Ray
-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 11:05 AM
To: CF-Talk
Subject: RE: Regex help
Probably easier to use listToArray(text, chr(10)) and then you can
iterate
over the array (each element
inal Message-
> From: Nathan Strutz [mailto:[EMAIL PROTECTED]
> Sent: maandag 22 maart 2004 20:16
> To: CF-Talk
> Subject: Re: Regex help
>
> this one should work:
>
> "(?m)^.*$"
>
>
>
> from the cfdocs:
>
> (?m)
>
&
e a better approach?
Thanks,
Ray
-Original Message-
From: Pascal Peters [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 2:10 PM
To: CF-Talk
Subject: RE: Regex help
This will only work on MX. The thing that is going wrong is that CF is
including Line feed in . (most regexp engines ar
Does anyone know the ASCII value for Tab?
Thanks,
Ray
-Original Message-
From: Pascal Peters [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 2:10 PM
To: CF-Talk
Subject: RE: Regex help
This will only work on MX. The thing that is going wrong is that CF is
including Line feed
www.asciitable.com
Mike
> Does anyone know the ASCII value for Tab?
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
Length = listLen(text, " #chr(9)#");
Id = listGetAt(text, length - 1, " #chr(9)#");
Chr(9) is the tab char, by the way.
Cheers,
barneyb
> -Original Message-
> From: Ray Bujarski [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 22, 2004 4:10 PM
> To: C
Thank you all for all of your help. I am done! And it's not even 5!!!
Woo-hoo.
-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 4:20 PM
To: CF-Talk
Subject: RE: Regex help
Length = listLen(text, " #chr(9)#");
Id = listGet
Str = Rereplace(cgi.http_referer, "&message=[^&]*", "");
That'll remove a URL variable named message from the string. Just run that
every time before you append your message variable, and you'll be set.
Cheers,
barneyb
> -Original Message-
> From: Burns, John D [mailto:[EMAIL PROTECTED
On Jul 2, 2004, at 8:01 PM, Michael T. Tangorre wrote:
> Does anyone have a regex handy to check a potential link.
>
> For instance: I need to make sure the link specified is in the
> following
> format
>
> http://www.whatever OR http://something
>
> Im not sure what the best check would be,
> If you are just scanning text to find any links, just look
> for something like:
>
> 'http://[^ "]*
Dick, I have a variation of above which checks for http or https followed by
a : followed by a an optional www followed by any number of letters, numbers
or periods. I just wanted to make sure I
How would I say
Www is optional?
var linkRE = /^https?\:\/\/[wW]{3}?/;
Mike
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
You are on the right track,
You might need to use several regexps to extract any valid format, then
see if you have anything left.
AFAIK, valid chars would be:
so you check for 1-n V period 1-n V period 1-n V
that takes char of the domain address
from now on you also can have ~/&?%#
If you
more accurately you should say [A-Za-z0-9]+
one or more of the above -- www is acceptable, but not required.
Dick
On Jul 2, 2004, at 8:52 PM, Michael T. Tangorre wrote:
> How would I say
>
> Www is optional?
>
> var linkRE = /^https?\:\/\/[wW]{3}?/;
>
> Mike
>
[Todays Threads]
[This Messa
The answer is (w{3})? , but in your case: why bother?
> -Original Message-
> From: Michael T. Tangorre [mailto:[EMAIL PROTECTED]
> Sent: 03 July 2004 05:52
> To: CF-Talk
> Subject: RE: Regex help
>
> How would I say
>
> Www is optional?
>
>
re of most formats. I seem to remember it didn't validate IPs or ports
but most of the rest. I left my copy at work, so I can't verify.
Pascal
> -Original Message-
> From: Michael T. Tangorre [mailto:[EMAIL PROTECTED]
> Sent: 03 July 2004 05:20
> To: CF-Talk
> Subjec
>>Im not sure what the best check would be
The best would sure be to CFHTTP the addres and check for the code returned.
Even a syntactically correct address may be a bad address.
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtag
You're close ...
[^cC]at should match any single character that is not c (or C) followed by
"at"
-Original Message-
From: Teel, C. Doug [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 10:33 AM
To: CF-Talk
Subject: Regex help
Regex help please. I've been busting my brain o
Try [^c]at
It will pick up the c also, so just add one if you need the exact position.
P.S. I juste tested it on the REwizard:
See http://www.contentbox.com/claude/REwizard/index.cfm?p=hf
~|
Archives: http://www.houseoffusion.com
Hopefully Ben can tell me why this appears to work.
#f#
Jerry Johnson
>>> [EMAIL PROTECTED] 09/11/03 01:32PM >>>
Regex help please. I've been busting my brain on this one.
Here's what I'm trying to do, I could have string like:
"...a cat hat prate at bird..."
And I want to match all the
Thanks JE for the response.
One note: This will also match something like "rat", but I only want the
"at" matched in rat.
-Original Message-
From: J E VanOver [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 12:58 PM
To: CF-Talk
Subject: RE: Regex
>>but I only want the "at" matched in rat.
As I said: just add one to the position.
~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://ww
]
*
-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 3:01 PM
To: CF-Talk
Subject: Re: Regex help
>>but I only want the "at" matched in rat.
As I said: just add one
Moonbow Software, Inc
: -Original Message-
: From: Jerry Johnson [mailto:[EMAIL PROTECTED]
: Sent: Thursday, September 11, 2003 2:29 PM
: To: CF-Talk
: Subject: Re: Regex help
:
:
: Hopefully Ben can tell me why this appears to work.
:
:
:
:
: #f#
:
:
: Jerry Johnson
:
:
: >>&g
[^cC](at) (in CF -- other RE engines would be [^cC]\(at\)
-Original Message-
From: Teel, C. Doug [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 11:42 AM
To: CF-Talk
Subject: RE: Regex help
Thanks JE for the response.
One note: This will also match something like &quo
That also won't match
AAT
or
TAT
-- Ben Doom
Programmer & General Lackey
Moonbow Software, Inc
: -Original Message-
: From: Joshua Miller [mailto:[EMAIL PROTECTED]
: Sent: Thursday, September 11, 2003 3:48 PM
: To: CF-Talk
: Subject: RE: Regex help
:
:
: [^cat]at
: From: J E VanOver [mailto:[EMAIL PROTECTED]
: Sent: Thursday, September 11, 2003 3:53 PM
: To: CF-Talk
: Subject: RE: Regex help
:
:
: [^cC](at) (in CF -- other RE engines would be [^cC]\(at\)
:
: -Original Message-
: From: Teel, C. Doug [mailto:[EMAIL PROTECTED]
: Sent: Thursday, Septembe
[^c]| )at", "\1AT", "all")
which capitalizes all the "at"s except in "cat".
-- Ben Doom
Programmer & General Lackey
Moonbow Software, Inc
: -Original Message-----
: From: Jerry Johnson [mailto:[EMAIL PROTECTED]
: Sent: Thursday, S
injas are ready to
become your sensei. :-)
CF-RegEx, for all your regex needs!
-- Ben Doom
Programmer & General Lackey
Moonbow Software, Inc
: -Original Message-
: From: Jerry Johnson [mailto:[EMAIL PROTECTED]
: Sent: Thursday, September 11, 2003 3:58 PM
: To: CF-Talk
: Subje
>>but not in CAT or CATalog or CATastrophe, etc.
Neither tattoo, in [^cat] any of c, a or t may not precede at.
~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?lin
ECTED]
*
-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 11, 2003 8:25 PM
To: CF-Talk
Subject: Re: Regex help
>>but not in CAT or CATalog or CATastrophe, et
It rather depends what you're trying to do but:
reReplaceNoCase(string, "]+>, "", "all")
-Original Message-
From: Ewok [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 5 November 2003 4:20 p.m.
To: CF-Talk
Subject: Regex help
hola listo!
I need some regex help : )
i need to find all cf ta
ags that are in a code block of a message board post
thanks for your help
Ewok
- Original Message -
From: Matthew Walker
To: CF-Talk
Sent: Tuesday, November 04, 2003 11:51 PM
Subject: RE: Regex help
It rather depends what you're trying to do but:
reReplaceNoCase(str
]
Sent: Wednesday, November 05, 2003 10:02 AM
To: CF-Talk
Subject: Re: Regex help
hey mathew...
that almost works! its not stopping at the end though
reReplaceNoCase(string, "]+>", "", "all")
its pretty much returning anything that starts with
RETURNS
Sent: Wednesday, November 05, 2003 10:14 AM
Subject: RE: Regex help
Some thoughtful soul (Dain Anderson) has already created a ColorCode script
for you. I use it on my blog website and it works wonderfully. You can
find it here:
http://www.cfcomet.com/utilities/
Look for
CF_ColoredCode
This is working ok in CF5 but apparently not in CFMX
Malformed regular _expression_ "\[[^\]*\]".
Reason: Unmatched [] in _expression_..
REReplace(ThisTag.GeneratedContent, "\[[^\]*\]", "", "All")
it's supposed to strip all [] with everyting inbetween the brackets
[Todays Threads]
[This Me
What version of Cold Fusion? How long is the longest possible string you are searching
through?
If newer than cf 5, or cf 5 and the max string is less than 20KB,
(I think)
Jerry Johnson
>>> [EMAIL PROTECTED] 10/21/04 12:26PM >>>
I'm trying to parse through some information in a text documen
ssage-
From: Jerry Johnson [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 21, 2004 12:41 PM
To: CF-Talk
Subject: Re: RegEx help
What version of Cold Fusion? How long is the longest possible string you
are searching through?
If newer than cf 5, or cf 5 and the max string is less than 20KB
1 - 100 of 226 matches
Mail list logo