Can someone assist me in writing the following regex...
I have a string, varies in length and I need to pull out of the string all the
characters between: %--- and ---%
An example of what this string might look like is:
dllCall1%---session|errorTrap|DetailNumeric---%EndDLLCall
I need to pull:
AudienceCentral (formerly PIER System, Inc.)
[EMAIL PROTECTED]
voice : 360.756.8080 x12
fax : 360.647.5351
www.audiencecentral.com
-Original Message-
From: Michael Tangorre [mailto:[EMAIL PROTECTED]
Sent: Monday, June 02, 2003 11:20 AM
To: CF-Talk
Subject: regex help needed
Can
Thanks!
I wasn't even close. :-)
You saved me a great deal of time, much appreciated.
Mike
- Original Message -
From: Barney Boisvert [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, June 02, 2003 2:29 PM
Subject: RE: regex help needed
result = REreplace(string
]
Reply-To: [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Subject: regex help needed
Date: Mon, 2 Jun 2003 14:19:56 -0400
Can someone assist me in writing the following regex...
I have a string, varies in length and I need to pull out of the string all
the characters between
help would be appreciated. :)
Oliver
: -Original Message-
: From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
: Sent: Friday, March 14, 2003 6:23 AM
: To: CF-Talk
: Subject: Re: SOT: RegEx Help!
: Do you mean this string is part of a larger text? Use:
: cfset text
[mailto:[EMAIL PROTECTED]
Sent: donderdag 20 maart 2003 10:43
To: CF-Talk
Subject: RE: RegEx Help! (more detail)
Hi Jochem,
Thanks for the reply (and the others who replied too!).
Ok let me explain myself a little better. I am outputting a page of
text
and if the user chooses to turn off
: Thursday, March 20, 2003 4:43 AM
: To: CF-Talk
: Subject: RE: RegEx Help! (more detail)
:
:
: Hi Jochem,
:
:
:
: Thanks for the reply (and the others who replied too!).
:
:
:
: Ok let me explain myself a little better. I am outputting a page of
: text
:
: and if the user chooses to turn off
. The remark about the parens is correct, but I already
corrected that.
-Original Message-
From: Ben Doom [mailto:[EMAIL PROTECTED]
Sent: donderdag 20 maart 2003 16:02
To: CF-Talk
Subject: RE: RegEx Help! (more detail)
cf_homerDoh!/cf_homer
I think I see the problem -- the parens. We must
PROTECTED]
: Sent: Thursday, March 20, 2003 10:33 AM
: To: CF-Talk
: Subject: RE: RegEx Help! (more detail)
:
:
: As I wrote in my previous mail, this will not work if you have more than
: one link in the text. Adding ALL when using a regexp that matches
: start and end (^...$) is pointless, as you can have
an occurance ---
cfset
text=REReplaceNoCase(text,(.*)a[^]+href=javascript:popUpJargonDefinition\([0-9]+\)([^]+)/a(.*),\1\2\3)
/cfloop
HTH
-Ryan
-Original Message-
From: Pascal Peters [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 20, 2003 10:33 AM
To: CF-Talk
Subject: RE: RegEx Help! (more
Any ninja's out there? ;)
Im having trouble with a regular expression i wonder if anyone could
help?
Im looking for this string (see bottom) and want to remove EVERYTHING
except the word a string here. This string could be any length or any
combo of chars\integers.
Also the JS arg (14) is
Oliver Cookson wrote:
Im looking for this string (see bottom) and want to remove EVERYTHING
except the word a string here. This string could be any length or any
combo of chars\integers.
Also the JS arg (14) is dynamic so that could be any number, everything
else is static.
A
Oliver,
Try something like this:
cfset yourNewString = ReReplaceNoCase(yourOldString, [^]*, ,
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
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
~|
Moonbow Software, Inc
: -Original Message-
: From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
: Sent: Friday, March 14, 2003 6:23 AM
: To: CF-Talk
: Subject: Re: SOT: RegEx Help!
:
:
: Oliver Cookson wrote:
:
: Im looking for this string (see bottom) and want to remove EVERYTHING
: except
That works great but it also removes other links which start with A
HREF=foo.htmlsome text/A.
I need it to remove links that start with A CLASS=jargon
I currently have:
reReplaceNoCase(stringIn, [^]*, , ALL)
Cheers
~|
yep ben i had it figured out:)
lol
by the way, thanks for the great presentation on this last night
dave
- Original Message -
From: Ben Doom [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, March 14, 2003 12:21 PM
Subject: RE: SOT: RegEx Help!
If this is in a larger page
Lackey
Moonbow Software, Inc
: -Original Message-
: From: Oliver Cookson [mailto:[EMAIL PROTECTED]
: Sent: Friday, March 14, 2003 10:47 AM
: To: CF-Talk
: Subject: RegEx Help!
:
:
: That works great but it also removes other links which start with
: A HREF=foo.htmlsome text/A.
:
: I need
Ben Doom wrote:
If this is in a larger page context, I probably wouldn't use (.*) since that
would grab everything from the open anchor tag to the /last/ closing anchor
tag. I'd use
([^]*)
Don't, is not an illegal character in an anchor. In that case use, ?
to make the regex non-greedy (in
Message-
: From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
: Sent: Friday, March 14, 2003 4:14 PM
: To: CF-Talk
: Subject: Re: SOT: RegEx Help!
:
:
: Ben Doom wrote:
: If this is in a larger page context, I probably wouldn't use
: (.*) since that
: would grab everything from the open anchor
Hello all,
A bit unfamiliar with anything somewhat tricky using regular
expressions. So any help with this would be very much appreciated.
I have a set of text that I would like to replace with another set.
I have a string of text example:
---Test---
Abc 123 Easy
---Test---
I need to not
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 complicated
- 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 after the ending
Hello,
I'm using the SoEditor wyiwyg Editor and I need some help with a regular
expression. The Soeditor when it is initially loaded prepopulates the text
area with some basic html. Head and body tags etc.
The problem I'm having with this is that if a user does not enter anything,
it still
Thanks for your quick replies quys, all code answers, I'll give them each a
try and see whats best.
I am aware that you can simply exclude the pageedit tag within the
SoEditor, but then it also strips out any user added header and html info,
which doesn't work so well.
Brook
At 03:06 PM
Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Brook Davies [mailto:brook;maracasmedia.com]
: Sent: Monday, October 21, 2002 2:48 PM
: To: CF-Talk
: Subject: SoEditor and RegEx help
:
:
: Hello,
:
: I'm using the SoEditor wyiwyg Editor and I need some
Okay, the HTMl code got cut out. How can you paste HTML code to this list?
I'm trying again with the below:
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
22, 2002 7:48 AM
Subject: SoEditor and RegEx help
Hello,
I'm using the SoEditor wyiwyg Editor and I need some help with a regular
expression. The Soeditor when it is initially loaded prepopulates the text
area with some basic html. Head and body tags etc.
The problem I'm having
I could see the HTML in your message
Matthew Walker
http://www.matthewwalker.net.nz/
- Original Message -
From: Brook Davies [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Tuesday, October 22, 2002 7:54 AM
Subject: Re: SoEditor and RegEx help
Okay, the HTMl code got cut out
Not a direct answer to your question, but...
Did you know you can turn off the automatic insertion of that HTML gobblygook?
PageEditSets whether the html being edited includes the HTML, HEAD,
and BODY elements. Set this attribute to true if you
General Lackey
Moonbow Software
: -Original Message-
: From: Jim Curran [mailto:jim_ml;nylontechnology.com]
: Sent: Thursday, October 17, 2002 6:29 PM
: To: CF-Talk
: Subject: OT RegEx Help
:
:
: Hello all,
:
: Simple Regex that I cannot decipher:
:
: String:
:
: br br br b class
- Original Message -
From: Ian Lurie [EMAIL PROTECTED]
Sorry to bug you again, but can you do a quick sanity check? I think this
one works:
h[^h]*h[0-9]
---
Wouldn't that run into problems with h in text inside the tags? I suppose
it'd have to be immediately
...
-Original Message-
From: Matthew Walker
[mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 22, 2002 10:26 PM
To: CF-Talk
Subject: RE: Regex help, again
I'm guessing that you actually want h(anynum)(any
text
here)/h(anynum) ?
You could use h[0-9]([^]*)/h[0-9] but that
would
]]
Sent: Sunday, September 22, 2002 10:26 PM
To: CF-Talk
Subject: RE: Regex help, again
I'm guessing that you actually want h(anynum)(any
text
here)/h(anynum) ?
You could use h[0-9]([^]*)/h[0-9] but that
would only work where
there are no HTML tags between the h tags
-
: From: Ian Lurie [mailto:[EMAIL PROTECTED]]
: Sent: Monday, September 23, 2002 1:15 AM
: To: CF-Talk
: Subject: Regex help, again
:
:
: I'm trying to pull all h(anynum)(any text here)/h.
:
: I've got: h[0-9] but can't seem to get the wildcard to work so
: that I can
: grab the entire element.
:
: Any
I found one that worked - thanks all of you for your help!
h[^h]*h[0-9]
-Original Message-
From: Ben Doom [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 23, 2002 12:05 PM
To: CF-Talk
Subject: RE: Regex help, again
Are you just worried about the first tag pair, or all of them
: cfset delimiters = '[:space:]'
: cfif not refindnocase(^((and|or|not|filter+[0-9])*[#delimiters#]*)*$,
: string)
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
with the chars you want to
disallow.
HTH.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Brook [mailto:[EMAIL PROTECTED]]
: Sent: Friday, September 20, 2002 1:39 PM
: To: CF-Talk
: Subject: regex help
:
:
: How do you write a regular
I'm trying to pull all h(anynum)(any text here)/h.
I've got: h[0-9] but can't seem to get the wildcard to work so that I can
grab the entire element.
Any ideas?
Ian
__
Get the mailserver that powers this list at
p.m.
To: CF-Talk
Subject: Regex help, again
I'm trying to pull all h(anynum)(any text here)/h.
I've got: h[0-9] but can't seem to get the wildcard to work
so that I can
grab the entire element.
Any ideas?
Ian
, 2002 10:26 PM
To: CF-Talk
Subject: RE: Regex help, again
I'm guessing that you actually want h(anynum)(any text
here)/h(anynum) ?
You could use h[0-9]([^]*)/h[0-9] but that would only work where
there are no HTML tags between the h tags.
-Original Message-
From: Ian Lurie [mailto
But I actually need what's between the hnum and /hnum and it DOES
include HTML.
Sigh...
You can only do it in CFMX. CF5 uses greedy regex matching. If you
simply wrote h[0-9](.*)/h[0-9] then you would match say the first
h1 and the last /h1 in the doc. If there's only one, that would be
:[EMAIL PROTECTED]]
Sent: Sunday, September 22, 2002 10:39 PM
To: CF-Talk
Subject: RE: Regex help, again
But I actually need what's between the hnum and /hnum and it DOES
include HTML.
Sigh...
You can only do it in CFMX. CF5 uses greedy regex matching. If you
simply wrote h[0-9](.*)/h[0-9
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
__
Structure your ColdFusion code with
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 any
That's PERL right? ...
CF is going to be slightly different...
cfset otherchars = YesNoFormat(REFind([^(this|that| )],mystring))
I think is equivalent... If not...
cfset otherchars = YesNoFormat(REFind([^(this|that| )],mystring))
Brook: you might find the [EMAIL PROTECTED] list helpful
], string)
Where you would replace the word illegal with the chars you want to
disallow.
HTH.
--Ben Doom
Programmer General Lackey
Moonbow Software
: -Original Message-
: From: Brook [mailto:[EMAIL PROTECTED]]
: Sent: Friday, September 20, 2002 1:39 PM
: To: CF-Talk
: Subject: regex
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
: Subject: Re: regex help
:
:
: m/[^(this|that|\s)]/ig
:
: Anything
/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
: Subject: Re: regex help
:
:
: m/[^(this|that|\s)]/ig
:
: Anything other than
PROTECTED]]
: Sent: Friday, September 20, 2002 1:47 PM
: To: CF-Talk
: Subject: Re: regex help
:
:
: 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
: 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
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 efficient
I need to parse a javascript file for function names. I have a regex that
will find the function MyName but I only want the MyName.
Here's my regex (from memory, so I might not have it right):
(?:function\s)\S*\(
(which if my understanding is right means a non-grouping search for
Regex in what language?
Where do the results need to go?
If CF 5 or less,
To just find the values:
cfset fileContent=function MyName(sdfkgjslkdf)#chr(10)#fsd gj#chr(10)#;fkjl
kg;ll;kszf kg;#chr(10)##chr(10)#;lafsk g;lkf
#chr(10)#g#chr(10)#;#chr(10)##chr(10)#function
Hi,
I'm trying to develop a regular expression that will find occurances of a given string
that is NOT inside any HTML tag. Right now i have something like
([^]*)?#stringToFind#
This ends up finding _every_ occurance of #stringToFind#. And it also matches the
beginning of any HTML tag. So
I was wondering if I could get some help with some server-side numeric
validation I'm doing. I've read Michael's RegEx tutorial at housoffusion.com
but can't seem to get my tests working.
I was trying to build RegEx's base on the following rules:
1. All numeric, whole numbers
2. All numeric,
contains numbers or a period.
Michael Dinowitz
Master of the House of Fusion
http://www.houseoffusion.com
- Original Message -
From: Dave Carabetta [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, July 10, 2002 11:35 AM
Subject: RegEx Help
I was wondering if I could get some
: '^(+-)? *[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
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):
cfsavecontent variable=content
This is some a href=test.cfm
How would I write a expression to replace $2,345.00 with 2345
Thanks
Douglas Brown
Email: [EMAIL PROTECTED]
__
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
How would I write a expression to replace $2,345.00 with 2345
Here's one way to do it:
cfset original = $2,345.00
cfset original = REReplace(original, [$,], , ALL)
cfset original = Left(original, Find(original, .) - 1)
That _should_ work. :)
Ben Johnson
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
REReplace(listfirst
Someday I'll figure this out:
I need to replace all characters from /head to the beginning of the
string, inclusive. How do I do it?
I tried:
CFSET content = ReReplaceNoCase(content,*/HEAD,)
But got nowhere...
Ian
Portent Interactive
Helping clients build customer relationships on the web
10:25 a.m.
To: CF-Talk
Subject: REGEX help
Someday I'll figure this out:
I need to replace all characters from /head to the beginning of the
string, inclusive. How do I do it?
I tried:
CFSET content = ReReplaceNoCase(content,*/HEAD,)
But got nowhere...
Ian
Portent
Ah. I tried that before as *./head - 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't
- switching the two characters did the
IL trick.
IL Thanks!
IL Any good sites/books out there about RegEx?
IL -Original Message-
IL From: Matthew Walker [mailto:[EMAIL PROTECTED]]
IL Sent: Monday, June 03, 2002 3:44 PM
IL To: CF-Talk
IL Subject: RE: REGEX help
IL You can't use * by itself
Does anyone know a regular expression that can be used in a rereplace(...)
to remove HTML comments from a string? I can't find one that takes into
account nested comments...
+---+
Bryan Love
Macromedia Certified Professional
Internet Application
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?
cfset sString = I1, TITLE1, I22, TITLE22, I333, TITLE333, I,
TITLE
cfset x =
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?
cfset sString = I1, TITLE1, I22, TITLE22, I333, TITLE333,
I am trying to do a search in ColdFusion Studio 5.0 to find all the pages in
a project that don't contain a specific string, does anyone know of a way I
can do this with regular expressions?
Bernd VanSkiver
[EMAIL PROTECTED]
ColdFusion Developer
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.
IMG alt= src=aboutuson.jpg
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.
:21 PM
Subject: RegEx Help
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
day, that my child may have
peace'...
- Thomas Paine, The American Crisis
-Original Message-
From: Bernd VanSkiver [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 13, 2001 2:21 PM
To: CF-Talk
Subject: RegEx Help
Got a Regular Expression problem that I can't figure out how
I need to look and see if the second character of a three character string
is a 0 (zero). How would I do that?
CFIF (insert regex here) do something /CFIF8-)
Thanks,
Dave
~~
Your ad could be here. Monies from ads go to support these lists
cfif mid(variable,2,1) eq 0
EC
-Original Message-
From: Dave Hannum [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 12:43 PM
To: CF-Talk
Subject: A little RegEx help . . .
I need to look and see if the second character of a three character string
is a 0 (zero). How
I need to look and see if the second character of a three character string
is a 0 (zero). How would I do that?
CFIF REFind(.0., string)
do something
/CFIF
- Gyrus
~~
Get the mailserver that powers this list at http://www.coolfusion.com
mid()
On Wed, 5 Dec 2001, Dave Hannum wrote:
I need to look and see if the second character of a three character string
is a 0 (zero). How would I do that?
CFIF (insert regex here) do something /CFIF8-)
Thanks,
Dave
~~
Your ad
cfif mid(string, 3, 1) IS 0
Jamie
On Wed, 5 Dec 2001 12:42:53 -0500, in cf-talk you wrote:
I need to look and see if the second character of a three character
string
is a 0 (zero). How would I do that?
CFIF (insert regex here) do something /CFIF8-)
Thanks,
Dave
If it's always going to be a three character string, use the mid string
function
cfif Mid(theString, 2, 1) IS 0
-Original Message-
From: Dave Hannum [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 11:43 AM
To: CF-Talk
Subject: A little RegEx help . . .
I need to look
rather:
cfif mid(string, 2, 1) IS 0
misread your post.
j
On Wed, 05 Dec 2001 13:13:56 -0500, in cf-talk you wrote:
cfif mid(string, 3, 1) IS 0
~~
Structure your ColdFusion code with Fusebox. Get the official book at
Here is how I chose to do it.
CFIF REFindNoCase('0', i) EQ 2
Dave
- Original Message -
From: Jamie Jackson [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, December 05, 2001 2:41 PM
Subject: Re: A little RegEx help . . .
rather:
cfif mid(string, 2, 1) IS 0
misread
I figured it out:
CFIF REFindNoCase('0', string) EQ 2do something/CFIF
Dave
- Original Message -
From: Dave Hannum [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, December 05, 2001 12:42 PM
Subject: A little RegEx help . . .
I need to look and see if the second
', string) EQ 2do something/CFIF
Dave
- Original Message -
From: Dave Hannum [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, December 05, 2001 12:42 PM
Subject: A little RegEx help . . .
I need to look and see if the second character of a three character
string
is a 0
2do
something/CFIF
Dave
- Original Message -
From: Dave Hannum [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, December 05, 2001 12:42 PM
Subject: A little RegEx help . . .
I need to look and see if the second character of a
three character string
is a 0
FindNoCase(0,string) would work as well...
Regards,
Joel Parramore
-Original Message-
From: cf refactoring [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 4:11 PM
To: CF-Talk
Subject: Re: A little RegEx help . . .
Dave H,
Your answer
CFIF REFindNoCase('0
refactoring [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 4:11 PM
To: CF-Talk
Subject: Re: A little RegEx help . . .
Dave H,
Your answer
CFIF REFindNoCase('0', string) EQ 2do
something/CFIF
isn't correct because you will get a TRUE for the
string 012. You should use one
You're right.
Thanks,
Dave
- Original Message -
From: cf refactoring [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, December 05, 2001 4:11 PM
Subject: Re: A little RegEx help . . .
Dave H,
Your answer
CFIF REFindNoCase('0', string) EQ 2do
something/CFIF
I get these text files that I process with CFHTTP (that part works very
well for now), but occassionally, the files are messed up, in that they
have some quote marks within the text qualified quote marks. Ug.
Like this:
column 1,column 2 is ok,column has some nickname in it,ug
Which CF chokes
]]
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 very
well for now), but occassionally, the files are messed up, in
that they
have some quote marks within the text qualified quote marks. Ug.
Like
:27 AM
To: CF-Talk
Subject: SOT: Regex Help
I get these text files that I process with CFHTTP (that part
works very well for now), but occassionally, the files are
messed up, in that they have some quote marks within the text
qualified quote marks. Ug.
Like this:
column 1,column 2
I seem to be having a problem searching for a space using RegEx. This is
what i'm using:
cfif REFindNoCase([[:Alpha:][:Punct:][ ]], myString)
bad chars found
/cfif
but it doesn't find any of the chars i'm looking for if i include [ ]. If
i remove that part, it finds what i'm looking for.
Developer
[EMAIL PROTECTED]
-Original Message-
From: John Barleycorn [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 27, 2001 9:56 AM
To: CF-Talk
Subject: More RegEx Help
I seem to be having a problem searching for a space using RegEx
Don't you want something like this?
cfif REFindNoCase(([[:Alpha:]]|[[:Punct:]]), myString)
bad chars found
/cfif
(|) does alternation (like or)
Jamie
On Fri, 27 Jul 2001 16:56:22 +, in cf-talk you wrote:
I seem to be having a problem searching for a space using RegEx. This is
what
]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, July 27, 2001 12:56 PM
Subject: More RegEx Help
I seem to be having a problem searching for a space using RegEx. This is
what i'm using:
cfif REFindNoCase([[:Alpha:][:Punct:][ ]], myString)
bad chars found
/cfif
but it doesn't find any
Never mind, typos happen to the best of us (preferably not on live servers,
though... ;) )
David Cummins
Rob Keniger wrote:
on 17/11/00 6:22 AM, David Cummins at [EMAIL PROTECTED] wrote:
Firstly, I'm pretty sure you don't need to escape a space.
Secondly, no question mark is
Try this
REReplaceNoCase(string, '([a-z0-9]) ([a-z0-9])', '\1\2', 'all')
This will look for a character followed by a space and then a character and
replace it with the first and second character (without the space in
between.
Hello all
I have a page of text that looks like this...
H e l l
Firstly, I'm pretty sure you don't need to escape a space.
Secondly, no question mark is required, because I want to replace exactly one
character followed by exactly one space with just the character.
And thirdly, you don't have to specify that the character is not a space,
because a space
501 - 600 of 614 matches
Mail list logo