I am parsing a document that is a simple unix text document.I want to
grab one line at a time so I use refind(^.*$, text, 1, true).However
this doesn't grab a single line at a time, it grabs the entire blob of
text?!Am I doing something wrong?
Thanks,
Ray
[Todays Threads]
[This Message]
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
I
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
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
: 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)
If at the beginning of a regular _expression_, it specifies the
multiline mode
?
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 aren't). You are better
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: CF-Talk
Subject: RE: Regex help
I got
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 = listGetAt(text, length - 1
oi CF-Talk,!!
I am retrieving a bit of html and want to grab the value of a specific
hidden input in the .filecontent
input type=hidden name=userName value=Critter
any ideas or suggestions as to the best way to grab the value??
ta
/crit
--
=-=-=-=-=-=-=-=-=-=-=-=-=-[ Help me fight to keep
-
From: Critter [mailto:[EMAIL PROTECTED]
Sent: vrijdag 13 februari 2004 15:09
To: CF-Talk
Subject: cfhttp and regex...help please
oi CF-Talk,!!
I am retrieving a bit of html and want to grab the value of
a specific
hidden input in the .filecontent
input type=hidden name=userName
[mailto:[EMAIL PROTECTED]
Sent: vrijdag 13 februari 2004 15:09
To: CF-Talk
Subject: cfhttp and regex...help please
oi CF-Talk,!!
I am retrieving a bit of html and want to grab the value of
a specific
hidden input in the .filecontent
input type=hidden name=userName value=Critter
any ideas
I have routine that reads in an RTF file, and then needs to find bookmarks
and insert a value for the bookmark.I'm usings CF's replace function,
and it works, but takes way too long in some cases.So I thought that if I
use regular expressions (with the REReplace function), I might speed things
up.
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 variable, then
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
Hey All,
I'm Looking forRegex to validate that an email has an @ symbol and
that there is no invalid character's
Thanks,
Trevor Holm-Laursen
eBusiness Developer, FCS
Direct:(902)463-5953
FCS (Fundy Computer Services Ltd.)
Tel 877-993-8636
Fax 902-484-5887
Email:[EMAIL PROTECTED]
^(\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 forRegex 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 though.
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 forRegex to validate that an email has an @
Trevor,
On 1/20/2004 at 10:10, you wrote:
THL I'm Looking forRegex 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
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 of
.
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 regular
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, much harder to say do this
when a condition is false than do this when a condition
The best way to reduce bandwidth consumption is to use http compression.
- Original Message -
From: Ryan Edgar [EMAIL PROTECTED]
Date: Tuesday, January 6, 2004 3:05 pm
Subject: RE: Regex Help
Yes I'm removing whitespace to reduce page size.
I inherited a CF5 project with huge amounts
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 html tag (or the ?xml .. tag),
include a cfcontent with the reset attribute enabled. That will
reset the
I've written a simple Regex to remove all the whitespace from my templates:
CFSET PageSource = REReplace(PageScource, [[:space:]]{2,}, , ALL)
The problem I'm having is if there is _javascript_ on a page and there are
inline comments, the _javascript_ won't work.
alert('Hello'); // 1st line
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
Hi All,
I'm trying to write a regex that does the following:
Looks for any instance of the string \par followed by anything but a space
and replace it with \par and a space and the character that followed it.
So, if I have \parThe
I want
\par The
Here's what I'm trying, and it doesn't work:
rereplace(mystring, (\ file://\\par)([^[:space \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
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 instance of the
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, (\ file://\\par)([^[:space \par)([^[:space:]]),
\1 \2, all)
[Todays Threads
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
rereplace(mystring, (\ file://\\par)([^[:space \par)([^[:space
Nevermind. I figured it out another way.
-d
- Original Message -
From: Deanna Schneider [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 8:49 AM
Subject: Re: regex help
Nope. Doesn't work. What's the file:// part supposed to be doing?
I'm not parsing
, 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:31
To: CF-Talk
Subject: RE: regex help
rereplace(mystring, (\ file://\\par
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:31
To: CF-Talk
Subject: RE: regex help
rereplace
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, but if it's \par\parWord, I get \par
trying to do is colorcodeall the cf tags 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
CF_ColoredCode v3.2
-Original Message-
From: Ewok [mailto:[EMAIL PROTECTED]
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, /?cf[^]+, , all)
its pretty much
, 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/ http://www.cfcomet.com/utilities/
Look forhttp
hola listo!
I need some regex help : )
i need to find all cf tags in some text and replace it with something else
so anything that starts with cfand ends with and anything that starts with /cf and ends with
this should be an easy one and im sure it is... but I left my brain on vacation
i
It rather depends what you're trying to do but:
reReplaceNoCase(string, /?cf[^]+, , 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
~~
-Original Message-
From: Gyrus [SMTP:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 8:55 PM
To: CF-Talk
Subject: Re: Seeking RegEx help
At 17:33 01/10/2003 -0700, you wrote:
I have a URL I'm grabbing ...
http://ww.mysite.com/VENTURA-435672_123-1.jpg
I'm
I have a URL I'm grabbing ...
http://ww.mysite.com/VENTURA-435672_123-1.jpg
I'm actually only interested in grabbing the 435672_123 part.
REReplace(myURL, ([-])([0-9]{6,}[_][0-9]{3})([-]), \2, ONE)
But all that does is drop the dashes from around the number I want ... how
do I grab out just
At 17:33 01/10/2003 -0700, you wrote:
I have a URL I'm grabbing ...
http://ww.mysite.com/VENTURA-435672_123-1.jpg
I'm actually only interested in grabbing the 435672_123 part.
REReplace(myURL, ([-])([0-9]{6,}[_][0-9]{3})([-]), \2, ONE)
But all that does is drop the dashes from around the
pe this helps. Steve -Original Message- From: kelly [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 4:51 PM To: CF-Talk Subject: Re: REgEx Help - Ben I apologize if this is a dupe, my mail is acting odd today. Ben I'm using CF MX and here is an sample of text I actually
I apologize if this is a dupe, my mail is acting odd today.Ben I'm using CF MX and here is an sample of text I actually will be using.125072 A HREF="">For each line above I need to remove A HREF="" and /a but leave what's in between (CIMG0121.JPG) and what comes before a HREFSo the end result
e(myNewPhrase, '[][/][aA][]', '', All)This returns 125072 CIMG0131.JPG~ Hope this helps. Steve -Original Message-From: kelly [mailto:[EMAIL PROTECTED]Sent: Friday, September 26, 2003 4:51 PMTo: CF-TalkSubject: Re: REgEx Help - BenI apologize if this is a dupe, my mail is acting odd today.Ben I'
I'm not sure of the syntax, but it would seem you want to get the subStringbetween the first and the second of the string. Matt Knight º w: 972 361 9943 º m: 214 213 4016 _From: kelly [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 3:51 PMTo: CF-TalkI apologize if this is a
]
*
-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, etc.
Neither tattoo
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 at strings except the at string in the
cat.
I tried a bunch of stuff like: (^C)?at but that didn't work
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
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:
Hopefully Ben can tell me why this appears to work.
cfset str=gat...a chat cat hat prate at bird...
cfset f=reReplaceNoCase(str,(^| )([^ ]*)([^C ])at,\1\2\3AT,ALL)
cfoutput#f#/cfoutput
Jerry Johnson
[EMAIL PROTECTED] 09/11/03 01:32PM
Regex help please. I've been busting my brain
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 help
You're close ...
[^cC
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:
]
*
-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 to the position
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.
:
: cfset str=gat...a chat cat hat prate at bird...
:
: cfset f=reReplaceNoCase(str,(^| )([^ ]*)([^C ])at,\1\2\3AT,ALL)
: cfoutput#f#/cfoutput
[^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 rat
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
[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, September 11, 2003 11:42 AM
Programmer General Lackey
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.
:
: cfset str=gat...a chat
capitalizes all the ats except in cat.
:
: -- Ben Doom
: Programmer General Lackey
: 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
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:
I was looking for a RegEx to strip all non-alphanumeric characters.
cfset string = fete%20%20it89
cfset myVar = replacenocase(string,RegEx,,All)
Thanks,
Dave
HTC Disclaimer: The information contained in this message may be privileged and
confidential and protected from disclosure. If the
This should do the job:
cfset myVar = rereplacenocase(string, [^[:alnum:]], , ALL)
Tim.
---
RAWNET LTD - Internet, New Media and ebusiness Gurus.
Visit our new website at http://www.rawnet.com for
more information about our company, or call
rereplacenocase(string, [^a-z0-9]+, , all);
-- Ben Doom
Programmer General Lackey
Moonbow Software, Inc
: -Original Message-
: From: Bosky, Dave [mailto:[EMAIL PROTECTED]
: Sent: Tuesday, August 19, 2003 2:10 PM
: To: CF-Talk
: Subject: RegEx help
:
:
: I was looking
, Inc
: -Original Message-
: From: Bosky, Dave [mailto:[EMAIL PROTECTED]
: Sent: Tuesday, August 19, 2003 2:10 PM
: To: CF-Talk
: Subject: RegEx help
:
:
: I was looking for a RegEx to strip all non-alphanumeric characters.
:
: cfset string = fete%20%20it89
: cfset myVar = replacenocase
Programmer General Lackey
Moonbow Software, Inc
: -Original Message-
: From: s. isaac dealey [mailto:[EMAIL PROTECTED]
: Sent: Tuesday, August 19, 2003 3:11 PM
: To: CF-Talk
: Subject: RE: RE: RegEx help
:
:
: personally I prefer
:
: rereplace(string,[^[:alnum:]],,all)
:
: in either case
, 2003 12:11 PM
To: CF-Talk
Subject: RE: RE: RegEx help
personally I prefer
rereplace(string,[^[:alnum:]],,all)
in either case the + is extraneous
ben: does that improve performance you think?
Original Message ---
rereplacenocase(string, [^a-z0-9]+, , all);
-- Ben
://www.houseoffusion.com/cf_lists/index.cfm?method=threadsforumid=21
-- Ben Doom
Programmer General Lackey
Moonbow Software, Inc
: -Original Message-
: From: Thanh Nguyen [mailto:[EMAIL PROTECTED]
: Sent: Thursday, August 14, 2003 8:15 PM
: To: CF-Talk
: Subject: Regex help
:
:
: Can someone
Try this out:
Assuming for example that your company name field is form.company_name:
cfset commonWords = inc\.|corp\.|llc\.|ltd\.
cfset form.company_name = REReplaceNoCase( form.company_name, \b(#commonWords#)\b,
, all ) /
The regular expression uses this type of syntax:
Can someone assist me in writing a regex to remove all common words such as
inc., corp., llc., ltd. from a company name field.
Thanks
Thanh Nguyen
~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription:
Can someone assist me in writing a regex to return a string that has only spaces,
numbers and letters reminaing?
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
Certainly.
What version of CF?
What is the max length of the string?
Do you really mean the space character, numbers and letters? No punctuation? No
dashes? No decimal place? No -/+ sign?
If CF 5 and less than 2 characters long...
cfset newStr=reReplaceNoCase(str,[^[:alnum:] ],,ALL)
or
What version of CF?
5
What is the max length of the string?
unlimited so I am looping over the string in chunks (15,000)
Do you really mean the space character, numbers and letters? No punctuation?
No dashes? No decimal place? No -/+ sign?
yup... I am just after certain pieces of text which
rereplacenocase(string, [^a-z 0-9], , all);
-- Ben Doom
Programmer General Lackey
Moonbow Software, Inc
: -Original Message-
: From: Michael T. Tangorre [mailto:[EMAIL PROTECTED]
: Sent: Wednesday, July 30, 2003 2:04 PM
: To: CF-Talk
: Subject: regex help
:
:
: Can someone
Ok, cool i've got this aspect working, thanks dave...
Now... I am doing a cfhttp on a php page and need to return the php sid, so
basically I need to search through the string and find
sid=. where the Represent a 32 char alphanumeric string...
I've tried
July 2003 15:50
To: CF-Talk
Subject: Re: Cfhttp (now regex help needed...)
Ok, cool i've got this aspect working, thanks dave...
Now... I am doing a cfhttp on a php page and need to return the php
sid,
so
basically I need to search through the string and find
sid=. where
: Subject: Re: Cfhttp (now regex help needed...)
:
:
: Ok, cool i've got this aspect working, thanks dave...
:
: Now... I am doing a cfhttp on a php page and need to return the
: php sid, so
: basically I need to search through the string and find
:
: sid=. where the Represent a 32 char
Message-
: From: Ryan Mitchell [mailto:[EMAIL PROTECTED]
: Sent: Monday, July 14, 2003 10:50 AM
: To: CF-Talk
: Subject: Re: Cfhttp (now regex help needed...)
:
:
: Ok, cool i've got this aspect working, thanks dave...
:
: Now... I am doing a cfhttp on a php page and need to return
Here is a string I need to change.
cfset QueryString =
#REReplaceNoCase(#QueryString#,Oby=OrderIDStype=Asc,)#
I need to replace Oby=OrderIDStype=Asc where OrderID could be anything
so I need a wildcard in there. And same with with Stype which could be Asc
or Desc so I also need a wildcard in
: -Original Message-
: From: Ryan Roskilly [mailto:[EMAIL PROTECTED]
: Sent: Wednesday, June 25, 2003 3:57 PM
: To: CF-Talk
: Subject: quick regex help
:
:
: Here is a string I need to change.
:
: cfset QueryString =
: #REReplaceNoCase(#QueryString#,Oby=OrderIDStype=Asc,)#
:
: I need to replace Oby
First, you can just reference the variable queryString as the first parameter ot
rereplacenocase (no #), and the value returned by rereplacenocase
cfset queryString=REReplaceNoCase(queryString,regex,newvalue)
Second, what do you want to replace these strings with? NULL (delete them?)
Third do
thanks this worked just fine
cfset queryString=
REReplaceNoCase(queryString,Oby=[^]*Stype=(Asc|Desc),,ALL)
-Original Message-
From: Jerry Johnson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 4:16 PM
To: CF-Talk
Subject: Re: quick regex help
First, you can just reference
I am trying to determine if an integer begins with 332.
The number varies in length from 4 to 9 digits in length. If 332 begins the number I
would like to return the number minus the 332.
I am still trying to learn regex so an explanation with any ideas would be very
helpful. Here is what I am
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 in length
Subject: regex help
I am trying to determine if an integer begins with 332.
The number varies in length from 4 to 9 digits in length. If 332 begins the
number I would like to return the number minus the 332.
I am still trying to learn regex so an explanation with any ideas would be
very helpful
: 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 if an integer begins with 332.
The number varies
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
Michael,
I also use this program to help test
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 time.
http
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 on W2K
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.
:`(
-Original Message-
From: Marlon Moyer [mailto
[mailto:[EMAIL PROTECTED]
: Sent: Monday, June 16, 2003 1:44 PM
: To: CF-Talk
: Subject: regex help
:
:
: I am trying to determine if an integer begins with 332.
:
: The number varies in length from 4 to 9 digits in length. If 332
: begins the number I would like to return the number minus the 332
Good Morning.
A day or so ao I got some help with a regular expression and when I wrote a sample
input string to match against it worked fine, howvever I failed to realize I have to
HTMLCodeFormat the results from the http post in order to get a string to use. The
Regex does not seem to work
Subject: Regex Help
Good Morning.
A day or so ao I got some help with a regular expression and when I wrote a
sample input string to match against it worked fine, howvever I failed to
realize I have to HTMLCodeFormat the results from the http post in order to
get a string to use. The Regex does
,
Matthew Walker
Electric Sheep Web
http://www.electricsheep.co.nz/
- Original Message -
From: Michael Tangorre [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, June 06, 2003 12:02 AM
Subject: Regex Help
Good Morning.
A day or so ao I got some help with a regular expression
]
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, do it the other way :OP
Ade
-Original Message-
From: Michael
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
: Regex Help
^ 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
401 - 500 of 614 matches
Mail list logo