RegExp Help

2002-05-23 Thread Wallick, Mike
Hey all. I'm trying to cook up a regexp to search a block of text for links. What I'm looking for is something like: I want to read the block of text and replace spaces with %20 so links won't break. I know, I know, links shouldn't have spaces in them, but this is something I inherited and ch

Regexp help

2001-07-17 Thread Bryan LaPlante
I need some help from one of the RegExp guru's. I am trying to get a list of function names from my page for example the following functions name resides in the page at position 9 to 17. I need a regular expression that will find everything between the word function and the parenthesis character (

RegExp Help

2003-03-26 Thread David Collie (itndac)
Can anyone help me with the RegExp for stripping out content between two defined tags... ie ... Content to strip out ... I would need it to strip out all the content and the tags themselves as well... TaInAdvance ~

regexp help

2004-08-30 Thread chris porter
hi guys, heres a quick regexp question for ya.. i have this text (from an email and need a regex that will match the product info protions: Here's the text: (might need to expand your window to see the full format) [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Se

RegExp Help

2002-03-20 Thread Wallick, Mike
Anyone Have a RegExp to get all content between the tags? I found a UDF that parses out the , but I'm trying to modify it to parse out the instead, but I'm not having much luck. Any help would be greatly appreciated. mike wallick * web application developer * [EMAIL PROTECTED] * 651.628.5377 *

regexp help

2006-09-27 Thread Ray Champagne
Can some tell me what the regexp would be to remove all instances of _ or 1 or 2 (that's underscore OR one OR two) from a string? Like ffmpti_2 would become ffmpti or carfeed1 would become carfeed. Thanks ~| Introduci

Re: RegExp Help

2002-05-23 Thread Gyrus
- Original Message - From: "Wallick, Mike" <[EMAIL PROTECTED]> Hey all. I'm trying to cook up a regexp to search a block of text for links. What I'm looking for is something like: I want to read the block of text and replace spaces with %20 so links won't break.

RE: RegExp Help

2002-05-23 Thread Matthew Walker
; Sent: Friday, 24 May 2002 3:24 a.m. > To: CF-Talk > Subject: RegExp Help > > > Hey all. I'm trying to cook up a regexp to search a block of > text for links. > What I'm looking for is something like: > > > > I want to read the block of text and re

Re: RegExp Help

2002-05-24 Thread Gyrus
- Original Message - From: "Matthew Walker" <[EMAIL PROTECTED]> ", "", "all")> This will only replace one space per anchor. You need to run it repeatedly to get them all. - I ended up with a similar solution in replying to the original poster - with a conditi

Re: RegExp Help

2002-05-24 Thread Matthew Walker
ssage - From: "Gyrus" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Saturday, May 25, 2002 2:40 AM Subject: Re: RegExp Help > - Original Message - > From: "Matthew Walker" <[EMAIL PROTECTED]> > > ([^""]*)&qu

Quick regexp help

2001-12-31 Thread Kay Smoljak
I wonder if there's anyone around who can help me with this... It's driving me crazy. I want a regexp to find a pattern starting with "" and replace it with "\b " (RTF markup). I have tried doing this, but it's not working: ]*>","\b ","ALL")> Anyone? K.

RegExp help needed

2002-01-08 Thread Jeff Beer
Hello all, I have a text file that's a save of a bunch of messages from Outlook. The messages are error reports from CF sent with CFMail. The formatting sucks - I never expected to get a bunch - I was using it for debugging.. anyway, I have several hundred I need to parse. Silly transaction lo

RE: Regexp help

2001-07-17 Thread Raymond Camden
From: Bryan LaPlante [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 17, 2001 5:00 PM > To: CF-Talk > Subject: Regexp help > > > I need some help from one of the RegExp guru's. I am trying to > get a list of > function names from my page for example the following funct

Re: Regexp help

2001-07-17 Thread Dick Applebaum
Assuming the test containing the source is a variable named text. the following will return a comma-delimited list of function names HTH Dick At 3:59 PM -0500 7/17/01, Bryan LaPlante wrote: >I need some help from one of the RegExp guru's. I am trying to get a list of >function names from

RE: Regexp help

2001-07-17 Thread Marlon Moyer
refindnocase("(function)(.)([[:graph::]]*)\(",thistag.generatedcontent,1,tru e)> Marlon -Original Message- From: Bryan LaPlante [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 17, 2001 4:00 PM To: CF-Talk Subject: Regexp help I need some help from one of the RegExp guru&#

Re: Regexp help

2001-07-17 Thread Dick Applebaum
Oops, wrap problems... try: Assuming the test containing the source is a variable named text. the following will return a comma-delimited list of function names HTH Dick At 3:59 PM -0500 7/17/01, Bryan LaPlante wrote: >I need some help from one of the RegExp guru's. I am trying to get a

RE: Regexp help

2001-07-17 Thread Sicular, Alexander
, cannot be represented as strings. ? -Original Message- From: Marlon Moyer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 17, 2001 7:24 PM To: CF-Talk Subject: RE: Regexp help refindnocase("(function)(.)([[:graph::]]*)\(",thistag.generatedcontent,1,tru e)> Marlon -Ori

RE: RegExp Help

2003-03-26 Thread Neil Middleton
.* I think, if not, nevermind... Neil > Can anyone help me with the RegExp for stripping out content > between two > defined tags... ie > > > ... > Content to strip out > ... > > > I would need it to strip out all the content and the tags > themselves as > well... ~

Re: RegExp Help

2003-03-26 Thread Jerry Johnson
What version of CF? How long can the string be you are stripping it from? By strip out, do you want the string returned without these tags in it? (As if you replaced them with "") Are the these tags ever nested? Jerry Johnson >>> [EMAIL PROTECTED] 03/26/03 10:03AM >>> Can anyone help me with th

RE: RegExp Help

2003-03-26 Thread David Collie (itndac)
I am absolutely hopeless with RegExp and I know there are experts on the list -Original Message- From: Jerry Johnson [mailto:[EMAIL PROTECTED] Sent: 26 March 2003 15:03 To: CF-Talk Subject: Re: RegExp Help What version of CF? How long can the string be you are stripping it from? By strip o

RE: RegExp Help

2003-03-26 Thread David Collie (itndac)
:[EMAIL PROTECTED] Sent: 26 March 2003 15:01 To: CF-Talk Subject: RE: RegExp Help .* I think, if not, nevermind... Neil > Can anyone help me with the RegExp for stripping out content > between two > defined tags... ie > > > ... > Content to strip out >

RE: RegExp Help

2003-03-26 Thread Ben Doom
sday, March 26, 2003 10:03 AM : To: CF-Talk : Subject: Re: RegExp Help : : : What version of CF? : How long can the string be you are stripping it from? : By strip out, do you want the string returned without these tags : in it? (As if you replaced them with "") : Are the these tags ever nes

RE: RegExp Help

2003-03-26 Thread Neil Middleton
thats alright, thats about the only regexp I know..;-) Neil > Hi Neil, Thanks for getting back to me... > > Your RegExp has done the trick well under it and really need to > brush up on my RegExp skills but am always put off by the > horrible ones > you see getting used! > > Much apprec

RE: RegExp Help

2003-03-26 Thread Ben Doom
king wierd questions about it. :-) -- Ben Doom Programmer & General Lackey Moonbow Software, Inc : -Original Message- : From: David Collie (itndac) [mailto:[EMAIL PROTECTED] : Sent: Wednesday, March 26, 2003 10:25 AM : To: CF-Talk : Subject: RE: RegExp Help : : : Hi Neil, Thanks fo

RE: RegExp Help

2003-03-26 Thread David Collie (itndac)
way Cheers for your help everyone PS anyone got any good resouces for learning RegExp? -Original Message- From: Ben Doom [mailto:[EMAIL PROTECTED] Sent: 26 March 2003 15:21 To: CF-Talk Subject: RE: RegExp Help Can the tags contain other tags? Will there ever be more than one set in the

RE: RegExp Help

2003-03-26 Thread Jerry Johnson
L PROTECTED] Sent: 26 March 2003 15:01 To: CF-Talk Subject: RE: RegExp Help .* I think, if not, nevermind... Neil > Can anyone help me with the RegExp for stripping out content > between two > defined tags... ie > > > ... > Content to strip out > ...

RE: RegExp Help

2003-03-26 Thread Ben Doom
March 26, 2003 10:34 AM : To: CF-Talk : Subject: RE: RegExp Help : : : FYI: The purpose was to rip out the HTML buttons of a report when : converting to PDF : : Neil's RegExp did what I needed as I could guarantee that there would : only be one set on the page that surrounded the HTML code

RE: RegExp Help

2003-03-26 Thread David Collie (itndac)
ssage- From: Ben Doom [mailto:[EMAIL PROTECTED] Sent: 26 March 2003 15:29 To: CF-Talk Subject: RE: RegExp Help Just be aware that if you have a page like Between the waves and the shore there's a boat here. You'll get Between here. not Between and the shore here. Because that r

RE: RegExp Help

2003-03-26 Thread Ben Doom
H -- Ben Doom Programmer & General Lackey Moonbow Software, Inc : -Original Message- : From: David Collie (itndac) [mailto:[EMAIL PROTECTED] : Sent: Wednesday, March 26, 2003 11:17 AM : To: CF-Talk : Subject: RE: RegExp Help : : : Hi all... : : All right guys I actually do wa

RE: RegExp Help

2003-03-26 Thread David Collie (itndac)
No CFMX upgrade for a while unfortunately, will look into the refind (if I get time!) Cheers to Neil, Jerry and Ben, much appreciated -Original Message- From: Ben Doom [mailto:[EMAIL PROTECTED] Sent: 26 March 2003 16:30 To: CF-Talk Subject: RE: RegExp Help The easy answer (for me) is

RE: RegExp Help

2003-03-26 Thread Jerry Johnson
26 March 2003 16:30 To: CF-Talk Subject: RE: RegExp Help The easy answer (for me) is to upgrade to CFMX, which allows "non-greedy" matches, which are intended to do exactly that. If you really need to do this, I'd use refind() to locate each instance of the beginning and ending

RE: RegExp Help

2003-03-26 Thread Jerry Johnson
And this is a simple replace and regex combo. (This replace the end tag with a (hopefully) unused character, which should be much easier to find than the endtag string) ","ø","ALL")> #tstr# #tstr2# Jerry ~| Archives:

RE: RegExp Help

2003-03-28 Thread David Collie (itndac)
Hi Jerry, was out the office yesterday [coder sees the light of day shock] and just wanted to say cheers for the help after my last post Good pointers in what I am needing to do in your code samples thanks :-) ~~

[OT] - RegExp Help

2003-12-09 Thread A.Little
Hi all, I'm trying to write a regular _expression_ and am having a little trouble... What I want to do is replace all instances of '/document.cfm' in a string with '/public/document.cfm', unless the original substring is '/public/document.cfm' - ie I don't want to end up with '/public/public/docum

RE: regexp help

2004-08-30 Thread Michael Dinowitz
Remember that the list removes all text that comes after a line of dashes. You may want to repost that text you want to parse. On the other hand, your in luck as I just finished another email parser to grab products out of an email for entry into a DB (for mothernature.com). I should be able to hel

Re: regexp help

2004-08-30 Thread chris porter
Hmm got bit by that lines problem... good advanced warning that that will happen ;) here is the text: Product Name Product NumberQty  Est. Ship Date Your Ext. Price [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donation

Re: regexp help

2004-08-30 Thread chris porter
and one last time DATA: Product Name Product NumberQty  Est. Ship Date Your Ext. Price [dashed go here all the way across PITA email parser] description of some item1 0344437 1   03/12/2004 USD    335.75 another des

RE: regexp help

2004-08-30 Thread Michael Dinowitz
OK, lets do the pattern dance. The product name will always be on it's own line and followed by the product info? What is the number format (if any). What can it contain (spaces, dashes, etc.). Is the quantity always there? Ship date always there? in any specific format? Price always there? Always

RE: regexp help

2004-08-30 Thread Michael Dinowitz
Subject: Re: regexp help and one last time DATA: Product Name Product NumberQty  Est. Ship Date Your Ext. Price [dashed go here all the way across PITA email parser] description of some item1 0344437 1   03/12/2004

Re: regexp help

2004-08-30 Thread Ian Sheridan
Why don;t you just go through the text as a list with CR as the delimiter? This way you can have much more focused regular expressions. Just a thought, Ian - Original Message - From: Michael Dinowitz <[EMAIL PROTECTED]> Date: Mon, 30 Aug 2004 16:49:48 -0400 Subject: RE: regexp h

RE: regexp help

2004-08-30 Thread Michael Dinowitz
ssage - From: Michael Dinowitz <[EMAIL PROTECTED]> Date: Mon, 30 Aug 2004 16:49:48 -0400 Subject: RE: regexp help To: CF-Talk <[EMAIL PROTECTED]> Really fast (Using the multi-line move of CFMX) ^([^#chr(13)#]+)[[:space:]]+([0-9]+)[[:space:]]+([0-9]+)[[:space:]]+([0-9]{2 }/[0-9]{2

Re: regexp help

2004-08-30 Thread Ian Sheridan
razy here but I pretty sure this would work. Any future changes on what each feild would hold would be easy to change. (beware I did not test it) Ian - Original Message - From: Michael Dinowitz <[EMAIL PROTECTED]> Date: Mon, 30 Aug 2004 18:23:04 -0400 Subject: RE: regexp help To: CF-T

Re: regexp help

2004-08-30 Thread chris porter
t;  _   > >From: chris porter [mailto:[EMAIL PROTECTED] >Sent: Monday, August 30, 2004 4:41 PM >To: CF-Talk >Subject: Re: regexp help > > >and one last time > >DATA: > >Product Name >Product NumberQty  Est. Ship Date You

Re: regexp help

2004-08-30 Thread chris porter
uld be easy to change. >(beware I did not test it) > >Ian > > >- Original Message - >From: Michael Dinowitz <[EMAIL PROTECTED]> >Date: Mon, 30 Aug 2004 18:23:04 -0400 >Subject: RE: regexp help >To: CF-Talk <[EMAIL PROTECTED]> > >You can get the

Re: regexp help

2004-08-30 Thread Ian Sheridan
do not know all the codes that you are using with the USD codes so I left it like this: [A-Z]{2,3} I just hope that I have helped somewhere. Ian - Original Message - From: chris porter <[EMAIL PROTECTED]> Date: Mon, 30 Aug 2004 21:40:53 -0400 Subject: Re: regexp help To: CF-Talk <

Re: regexp help

2004-08-31 Thread chris porter
are using with the USD codes so I left it like this: [A-Z]{2,3} > > I just hope that I have helped somewhere. > > Ian > > > - Original Message - > From: chris porter <[EMAIL PROTECTED]> > Date: Mon, 30 Aug 2004 21:40:53 -0400 > Subject: Re: reg

Re: RegExp Help

2002-03-20 Thread Jerry Johnson
]*>(.*).*","\1")> (or something like that) Jerry Johnson >>> [EMAIL PROTECTED] 03/20/02 01:10PM >>> Anyone Have a RegExp to get all content between the tags? I found a UDF that parses out the , but I'm trying to modify it to parse out the instead, but I'm not having much luck. Any help would

RE: RegExp Help

2002-03-20 Thread Wallick, Mike
You rock! That does exactly what I need it to do. Thanks Jerry Mike -Original Message- From: Jerry Johnson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 20, 2002 1:13 PM To: CF-Talk Subject: Re: RegExp Help ]*>(.*).*","\1")> (or something like that) Jerr

RE: regexp help

2006-09-27 Thread Ben Nadel
.. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Ray Champagne [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 27, 2006 2:16 PM To: CF-Talk Subject: regexp help Can some tell me what the regexp would be to

Re: regexp help

2006-09-27 Thread Claude Schneegans
>>what the regexp would be to remove all instances of _ or 1 or 2 (that's underscore OR one OR two) from a string? REreplace (MyString, "_|1|2", "", "all") -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Pleas

Re: regexp help

2006-09-27 Thread Jerry Johnson
rereplace(str, "[12_]","","ALL") ? On 9/27/06, Ray Champagne <[EMAIL PROTECTED]> wrote: > Can some tell me what the regexp would be to remove all instances of _ or 1 > or 2 (that's underscore OR one OR two) from a string? > > > > Like ffmpti_2 would become ffmpti or carfeed1 would become carfeed.

RE: regexp help

2006-09-27 Thread Ray Champagne
Ben, Claude, just so I know, what's the difference between your solutions? Is it merely more than one way to skin a cat, or is one better than another? > > REreplace (MyString, "_|1|2", "", "all") ~| Introducing the Fusion Au

Re: regexp help

2006-09-27 Thread Rob Wilkerson
No practical difference. Ben took the shortcut of using a character set rather than explicitly stating the "OR" ( | ) condition. To be clear, though, either of these will remove any _, 1 or 2 from your value. So "foo1bar" will become "foobar". If the chars to be removed must be at the end of th

RE: regexp help

2006-09-27 Thread Bobby Hartsfield
rereplace(str, '1|2|_', '', 'all') -Original Message- From: Ray Champagne [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 27, 2006 2:16 PM To: CF-Talk Subject: regexp help Can some tell me what the regexp would be to remove all instances of _ or 1 or

RE: regexp help

2006-09-27 Thread Ben Nadel
er of personal taste I suppose. .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Ray Champagne [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 27, 2006 2:54 PM To: CF-Talk Subject: RE: regexp help Ben, Claude, just so I know, what's th

RE: regexp help

2006-09-27 Thread Ben Nadel
using [] would be a nightmare. .. Ben Nadel Certified Advanced ColdFusion Developer www.bennadel.com -Original Message- From: Rob Wilkerson [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 27, 2006 3:07 PM To: CF-Talk Subject: Re: regexp help No practical

Re: regexp help

2006-09-27 Thread Jerry Johnson
I don;t know that Claude's will work quite right. I think it will also remove the | character. The main difference is that Ben used the +, which says to replace 1 or more adjacent occurances with null. This should be marginally faster than not using the +, since is does them in groups. But you wil

RE: regexp help

2006-09-27 Thread Bobby Hartsfield
lk Subject: Re: regexp help I don;t know that Claude's will work quite right. I think it will also remove the | character. The main difference is that Ben used the +, which says to replace 1 or more adjacent occurances with null. This should be marginally faster than not using the +, since

Re: regexp help

2006-09-27 Thread Teddy Payne
;[EMAIL PROTECTED]> wrote: > > rereplace(str, '1|2|_', '', 'all') > > > -Original Message- > From: Ray Champagne [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 27, 2006 2:16 PM > To: CF-Talk > Subject: regexp help > > Can

Re: regexp help

2006-09-27 Thread Teddy Payne
ng > characters. > > Teddy > > On 9/27/06, Bobby Hartsfield <[EMAIL PROTECTED]> wrote: > > > > rereplace(str, '1|2|_', '', 'all') > > > > > > -Original Message- > > From: Ray Champagne [mailto:[EMAIL PROTECTED] >

RE: regexp help

2006-09-27 Thread Crow T Robot
Thanks Ben, Jerry, Claude, Rob. > -Original Message- > From: Ben Nadel [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 27, 2006 3:19 PM > To: CF-Talk > Subject: RE: regexp help > Importance: High > > Ray, > > I don't think there is any rea

Re: regexp help

2006-09-27 Thread Jerry Johnson
Yeah, I read it as [1|2|_] within square brackets. My eyes playing tricks on my mind. On 9/27/06, Bobby Hartsfield <[EMAIL PROTECTED]> wrote: > Claude's (and mine) will work just fine. It won't replace the pipe since it > isn't escaped. It will also replace 1 or more instances of any of the 3 > ch

Re: regexp help

2006-09-27 Thread Claude Schneegans
>>what's the difference between your solutions? Technically, they do the same. Probabilly one is a couple of microseconds more efficient, but I can't even say which one. The range set [_12] is probabilly more elegant. The difference would be that with a range, you can only OR between characters

Re: regexp help

2006-09-27 Thread Claude Schneegans
>>I think it will also remove the | character. No: the | is the OR operator. -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~

More RegExp help...

2005-09-09 Thread Dave.Phillips
Hey folks, I have a regular expression I need for the following: I have filenames that have the following appended to them: filename_100x100.png filename_640x480.png filename_86x86.png and so on I need to extract JUST the filename. The kicker is, the filename MAY include underscores, so I

Re: Quick regexp help

2001-12-31 Thread Jim McAtee
ot; <[EMAIL PROTECTED]> Sent: Monday, December 31, 2001 11:37 PM Subject: Quick regexp help > I wonder if there's anyone around who can help me with this... It's > driving me crazy. I want a regexp to find a pattern starting with " then any number of characters, until the first

Re: Quick regexp help

2001-12-31 Thread Kay Smoljak
IL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Monday, December 31, 2001 11:37 PM > Subject: Quick regexp help > > > > I wonder if there's anyone around who can help me with this... It's > > driving me crazy. I want a re

Re: RegExp help needed

2002-01-08 Thread Don Vawter
if (startpos GT 0) stTime=refindnocase("DateTime\:[ ]*(\{[^\}]*\})",mf,startpos,"yes"); } HTH - Original Message - From: "Jeff Beer" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, January 08, 2002 10:43 AM Subjec

RE: RegExp help needed

2002-01-08 Thread Jeff Beer
} if (startpos GT 0) stTime=refindnocase("DateTime\:[ ]*(\{[^\}]*\})",mf,startpos,"yes"); } HTH - Original Message - From: "Jeff Beer" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, January 08, 2002 10

Re: RegExp help needed

2002-01-08 Thread Sam Farmer
Don't forget to cflock the call to cffile! :) Sam - Original Message - From: "Jeff Beer" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, January 08, 2002 2:18 PM Subject: RE: RegExp help needed > Holy cow, Don - I was ho

Re: RegExp help needed

2002-01-08 Thread Don Vawter
Had to write it to make sure regex worked lol - Original Message - From: "Jeff Beer" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, January 08, 2002 12:18 PM Subject: RE: RegExp help needed > Holy cow, Don - I was hoping for s

Re: [OT] - RegExp Help

2003-12-09 Thread Massimo Foti
> I'm trying to write a regular _expression_ and am having a little > trouble... What I want to do is replace all instances of '/document.cfm' > in a string with '/public/document.cfm', unless the original substring > is '/public/document.cfm' - ie I don't want to end up with > '/public/public/docu

Re: [OT] - RegExp Help

2003-12-09 Thread Massimo Foti
BTW Since sometimes I fund useful to access Jav's string APIs, I put together a collection of UDF inside a CFC: http://www.cfmentor.com/code/index.cfm?action=""> I am also almost finished a similar CFC that act as a wrapper for the java.util.regex package. I just need to polish it a little bit; i

Re: [OT] - RegExp Help

2003-12-09 Thread Ben Doom
Wow.  That's pretty cool.  I would love to see a copy when it gets finished. --Ben doom Massimo Foti wrote: > BTW Since sometimes I fund useful to access Jav's string APIs, I put > together a collection of UDF inside a CFC: > > http://www.cfmentor.com/code/index.cfm?action=""> > > > I am also

Re: [OT] - RegExp Help

2003-12-09 Thread Ben Doom
Besides using regex, there's a pretty stilly way of dealing with this. Replace() all the /public/document.cfm links with just /document.cfm, then replace all the /document.cfm links with /public/document.cfm It's a bit absurd, but it's an easy, quick fix that doesn't have to invoke a regex engi

A little regexp help

2004-06-25 Thread Todd
This is probably a simple one, but I have little experience with regexps.  I have a string that must only contain letters and/or numbers and be between 6 and 20 characters long.  So far, I have [a-zA-Z0-9]{6,20} but that only gets me 1/2 way there. Thanks! [Todays Threads] [This Message] [Sub

Re: More RegExp help...

2005-09-09 Thread Ben Doom
rereplace(string, "_[0-9]+x[0-9]+\.png", ""); If the pixel size (I assume that's what the numbers are) is always a square, you might use backreferencing to make it a bit pickier, but it probably isn't necessary. Assume the usual caveats. --Ben [EMAIL PROTECTED] wrote: > Hey folks, > > I have

RE: More RegExp help...

2005-09-09 Thread Dave.Phillips
Ben, That's it. Makes pefect sense now. Thanks! Dave -Original Message- From: Ben Doom [mailto:[EMAIL PROTECTED] Sent: Friday, September 09, 2005 5:17 PM To: CF-Talk Subject: Re: More RegExp help... rereplace(string, "_[0-9]+x[0-9]+\.png", ""); If the pi

Re: More RegExp help...

2005-09-10 Thread Scott Stroz
I love RegEx, and use them frequently. However, they are not always my first choice. I would actaully use: ListFirst(fileName,".") Assuming there are no periods in the file name. This may actually be a bit quicker since you don't use the Reg Ex engine. -- Scott Stroz Boyzoid.com

Re: More RegExp help...

2005-09-12 Thread Jann E. VanOver
And if the filename COULD contain other periods: listDeleteAt(filename,listLen(filename,"."),".") which says, delete the last list item using "." as list delimiter Scott Stroz wrote: >I love RegEx, and use them frequently. However, they are not always my first >choice. I would actaully use: > >

Re: More RegExp help...

2005-09-12 Thread Ben Doom
Except he also needs to remove the "_640x640" part. However, you could do the same thing with underscores instead of periods. --Ben Jann E. VanOver wrote: > And if the filename COULD contain other periods: > listDeleteAt(filename,listLen(filename,"."),".") > > which says, delete the last list

Re: More RegExp help...

2005-09-12 Thread Scott Stroz
Good point...then I might consider this ListFirst(ListFirst(fileName,"."),"_") Again, this is assuming teh format of th efile name will not change.. On 9/12/05, Ben Doom <[EMAIL PROTECTED]> wrote: > > Except he also needs to remove the "_640x640" part. However, you could > do the same thing wit

Re: A little regexp help

2004-06-25 Thread Ben Doom
^[a-zA-Z0-9]{6,20}$ The ^ matches the beginning o the string and the $ the end. --Ben Doom Todd wrote: > This is probably a simple one, but I have little experience with > regexps.  I have a string that must only contain letters and/or numbers > and be between 6 and 20 characters long.  So fa

Re: A little regexp help

2004-06-25 Thread Todd
; Sent: Friday, June 25, 2004 3:55 PM Subject: Re: A little regexp help > ^[a-zA-Z0-9]{6,20}$ > > The ^ matches the beginning o the string and the $ the end. > > --Ben Doom [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Re: A little regexp help

2004-06-25 Thread Ben Doom
> characters long that contains _only_ letters and/or numbers.  No special > characters at all.  In the case of ^[a-zA-Z0-9]{6,20}$ it allows special > characters once it finds at least 6 letters and/or numbers.  It's that > "only" part that is giving me trouble. Um.  No, it shouldn't.  I doesn't

Re: A little regexp help

2004-06-25 Thread Jerry Johnson
Are you trying to FIND a valid string, an invalid string, or are you trying to FIX an invalid string? Jerry Johnson >>> [EMAIL PROTECTED] 06/25/04 04:04PM >>> Thanks, but doesn't quite do it.  I should probably clarify what I need.  I left out an important word last time. What I need to end up w

Re: A little regexp help

2004-06-25 Thread Todd
t;Ben Doom" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, June 25, 2004 4:09 PM Subject: Re: A little regexp help > > characters long that contains _only_ letters and/or numbers.  No special > > characters at all.  In the case of ^[a-zA-Z0-9

Re: A little regexp help

2004-06-25 Thread Todd
When someone adds or resets a password, I'm trying to make sure what they entered matches the pattern I described below. - Original Message - From: "Jerry Johnson" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, June 25, 2004 4:14

Re: A little regexp help

2004-06-25 Thread Ben Doom
When I tested ^[a-zA-Z0-9]{6,20}$ against "astrjuh" it matched, but not when I tested it against "astrjuh$". What version of CF are you using? --Ben Todd wrote: > Yes. > > It works correctly as long as there are not at least 6 alphanumeric > characters side by side.  Once there are 6 in a row

Re: A little regexp help

2004-06-25 Thread Todd
-Talk" <[EMAIL PROTECTED]> Sent: Friday, June 25, 2004 5:08 PM Subject: Re: A little regexp help > When I tested ^[a-zA-Z0-9]{6,20}$ against "astrjuh" it matched, but not > when I tested it against "astrjuh$". > > What version of CF are you using? > &g

Re: A little regexp help

2004-06-25 Thread Todd
MAIL PROTECTED]> Sent: Friday, June 25, 2004 5:20 PM Subject: Re: A little regexp help > 6.1 Enterprise > > I'm beginning to think it's some screwy thing with the pattern attribute. I > should probably just break it out into a seperate _javascript_ function and be > don

Re: A little regexp help

2004-06-25 Thread Jerry Johnson
te _javascript_ function and be done with it. - Original Message - From: "Ben Doom" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Friday, June 25, 2004 5:08 PM Subject: Re: A little regexp help > When I tested ^[a-zA-Z0-9]{6,20}$ against &q

Re: A little regexp help

2004-06-25 Thread Ben Doom
" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Friday, June 25, 2004 5:20 PM > Subject: Re: A little regexp help > >  > 6.1 Enterprise >  > >  > I'm beginning to think it's some screwy thing with the pattern at