RE: Regex help - matching invalid xhtml

2008-12-03 Thread Andy Matthews
Gotcha. :) -Original Message- From: Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 03, 2008 9:04 AM To: cf-talk Subject: Re: Regex help - matching invalid xhtml Actually, both of your examples are invalid according to the W3C which states that all attributes must

Regex help - matching invalid xhtml

2008-12-02 Thread Will Tomlinson
I've beat my head against the wall on this regex. I want to match variations of invalid xhtml tags. Well, I need to match what's considered to be invalid at my place of work. :) WHat I've got almost works, but not quite. (?i)\input\s[\S\s]+[\s]*[^\s][^\/] It doesn't match this, which is

Re: Regex help - matching invalid xhtml

2008-12-02 Thread Will Tomlinson
I guess it'd be cool if I were to use (meta|input|img) in there, to flag single tags without the trailing [space]/ Will ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

OT- Regex Help- extracting email address

2008-09-25 Thread Mike Francisco
Hello CFers, I know this is OT, but I'll ask anyway. I was wondering if someone can help me with regex. I am returning a query object after executing a cfpop. On the query object, there is a column named 'From'. The data string is formatted like: John Doe [EMAIL PROTECTED] . I would

RE: OT- Regex Help- extracting email address

2008-09-25 Thread Adrian Lynch
If that's always the format, no need for a RegEx, use ListLast(theString, ). Adrian -Original Message- From: Mike Francisco Sent: 25 September 2008 21:32 To: cf-talk Subject: OT- Regex Help- extracting email address Hello CFers, I know this is OT, but I'll ask anyway. I was wondering

RE: OT- Regex Help- extracting email address

2008-09-25 Thread Mike Francisco
Adrian, No it might not always be the format- possibly it might just be the email address only or one with brackets. -Original Message- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2008 1:49 PM To: cf-talk Subject: RE: OT- Regex Help- extracting email

RE: OT- Regex Help- extracting email address

2008-09-25 Thread Andy Matthews
Subject: RE: OT- Regex Help- extracting email address Adrian, No it might not always be the format- possibly it might just be the email address only or one with brackets. -Original Message- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2008 1:49 PM To: cf

RE: OT- Regex Help- extracting email address

2008-09-25 Thread Adrian Lynch
Ah, then ignore me :) Google for an email RegEx and then if you're on CF8 use REMatch() to pull the email address out. Adrian -Original Message- From: Mike Francisco [mailto:[EMAIL PROTECTED] Sent: 25 September 2008 21:59 To: cf-talk Subject: RE: OT- Regex Help- extracting email address

RE: OT- Regex Help- extracting email address

2008-09-25 Thread Mike Francisco
Well, I just found a function on cflib that does exactly what I was looking for. Sooo... carry on- nothin' to see here folks -Original Message- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2008 1:49 PM To: cf-talk Subject: RE: OT- Regex Help

Regex help

2008-06-30 Thread Will Tomlinson
This SEEMED simple enough, but I can't quite make it work. Tried for the last 30 minutes. The string cannot have any spaces in between the if( or the ){ cfset str = 'if(someKey in struct){' cfset re = '[if\s+\(]+|[\)\s]+' cfoutput#reFindNoCase(re, str)#/cfoutput WHat am I doin wrong?

Re: Regex help

2008-06-30 Thread Will Tomlinson
I can do just one part, but if I try to make it an either/or with a pipe, it throws me off. This works. cfset str = 'if (someKey in struct){' cfset re = 'if\s+\(' cfoutput#reFindNoCase(re, str)#/cfoutput How do I add the brackets and so it'll catch one or the other? Thanks much, Will

Re: Regex help

2008-06-30 Thread Sonny Savage
This RegEx will tell you if there are any spaces between the parenthesis: if\s*\(.*\s+.*\)\s*\{ Edward A Savage Jr - Sonny Senior Software Engineer Creditdiscovery, LLC An appeaser is one who feeds a crocodile, hoping it will eat him last. ~ Sir Winston Churchill On Mon, Jun 30, 2008 at 2:58 PM,

Re: Regex help (Solved)

2008-06-30 Thread Will Tomlinson
Ok, my example was wrong anyway. lol! I figured it out. This worked: cfset str = 'if(someVar gt 0){' cfset re = 'if\s+\(|\)\s+\{' cfoutput#reFindNoCase(re, str)#/cfoutput ~| Adobe® ColdFusion® 8 software 8 is the most

Re: Regex help

2008-06-30 Thread Sonny Savage
It just occurred to me that the any pattern matches should be non-greedy for matching accuracy: if\s*\(.*?\s+.*?\)\s*\{ On Mon, Jun 30, 2008 at 3:10 PM, Sonny Savage [EMAIL PROTECTED] wrote: This RegEx will tell you if there are any spaces between the parenthesis: if\s*\(.*\s+.*\)\s*\{

Re: Regex help

2008-06-30 Thread Will Tomlinson
This RegEx will tell you if there are any spaces between the parenthesis: if\s*\(.*\s+.*\)\s*\{ I posted a solved post but don't see it yet. I can't use * because that flags it even if there's 0 spaces. I used + and it works. Thanks sonny! Will

Re: Regex help

2008-06-30 Thread Sonny Savage
Yeah... my solution has a '+' match on the space. Glad you solved it! On Mon, Jun 30, 2008 at 3:20 PM, Will Tomlinson [EMAIL PROTECTED] wrote: This RegEx will tell you if there are any spaces between the parenthesis: if\s*\(.*\s+.*\)\s*\{ I posted a solved post but don't see it yet. I

Re: Complex RegEx help request

2008-05-20 Thread Tom Chiverton
On Monday 19 May 2008, Jeremy Prevost wrote: emailFirstname Lastname/email into this: a href=javascript:ColdFusion.Window.create('staffContact#FirstName##Lastname #','Contact%20#Firstname#%20#Lastname#', refind() with 'returnsubmatches' enabled, and then use those array positions with mid()

Complex RegEx help request

2008-05-19 Thread Jeremy Prevost
Hi all. I'm hoping someone can help out with this problem I've run into. I'm trying to make our home grown CMS a bit easier to use for our editors and easier to maintain. The issue at hand involves how we code email addresses into the content. I have an even that pops up a new contact window

RE: Complex RegEx help request

2008-05-19 Thread Bobby Hartsfield
19, 2008 5:43 PM To: CF-Talk Subject: Complex RegEx help request Hi all. I'm hoping someone can help out with this problem I've run into. I'm trying to make our home grown CMS a bit easier to use for our editors and easier to maintain. The issue at hand involves how we code email addresses

Re: Complex RegEx help request

2008-05-19 Thread Jeremy Prevost
://acoderslife.com http://cf4em.com -Original Message- From: Jeremy Prevost [mailto:[EMAIL PROTECTED] Sent: Monday, May 19, 2008 5:43 PM To: CF-Talk Subject: Complex RegEx help request Hi all. I'm hoping someone can help out with this problem I've run into. I'm trying to make our

Re: regex help

2008-02-18 Thread cf coder
Thank you Jason, Craig and Bobby for your help which is greatly appreciated. However this is not quite what I want. I do apologise for changing my original requirement. I'll try to explain. I want to read the contents of all the .cfm files in a directory and return all the href tags with the

Re: regex help

2008-02-18 Thread cf coder
Actually, please ignore my last message. I have got it to work: reFindNoCase(a[ ][\w -~]+productID=[ -~]+/a,inputString, pos) Thank you everybdoy for your help. Regards, cfcoder Thank you Jason, Craig and Bobby for your help which is greatly appreciated. However this is not quite what I

Re: regex help

2008-02-18 Thread Jeff Price
Two questions: 1) What does the -~ do inside the []? I haven't seen that syntax before or I'm incredibly rusty with my regex. 2) Is your regex minimally matching? I had always thought CF was a greedy match? Thanks, Jeff Actually, please ignore my last message. I have got it to work:

Re: regex help

2008-02-18 Thread Craigsell
That range matches all the characters in the ascii chart except the control characters. Same as saying give me all the Ascii characters from Ascii 32 (space) to Ascii 126 (_). I thought it was a bit more restrictive than the dot operator. In the [\w -~], the -w is actually redundant since

Re: regex help

2008-02-18 Thread Jeff Price
LOL! And here I was thinking the ~ was some kind of special character! Sometimes if it looks like a tilde it's just a tilde :) Thanks! That range matches all the characters in the ascii chart except the control characters. Same as saying give me all the Ascii characters from Ascii 32 (space)

RE: regex help

2008-02-15 Thread Adrian Lynch
If you don't manage to get what you're after. Just loop over the array and look for the string. Adrian -Original Message- From: cf coder Sent: 15 February 2008 17:11 To: CF-Talk Subject: regex help Hello everybody, I need some help with regular expressions. I'm trying to write

Re: regex help

2008-02-15 Thread cf coder
pardon me saying this but it looks very complicated. I rather just write a regex that will do this effortlessley. Regards, cfcoder I need some help with regular expressions. What you need is the kind of requirement I made CF_REextract for. See

regex help

2008-02-15 Thread cf coder
Hello everybody, I need some help with regular expressions. I'm trying to write a reqular expression that will return all the links on a page that contain a string in the query string. I found a UDF on cflib that returns a list of all the anchor tags on a page but I want to only return all

Re: regex help

2008-02-15 Thread Craigsell
If tmp 0, it's there! reFindNoCase(a[ ]+href[ -~]+productID[ -~]+/a,inputString, pos) Warren Koch ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

Re: regex help

2008-02-15 Thread Craigsell
Sorry -- you only wanted it if productid was in a query string. Try this reFindNoCase(a[ ]+href[ -~]+\?[ -~]+productID=[ -~]+/a,inputString, pos) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release

Re: regex help

2008-02-15 Thread Gerald Guido
I use the QuickREx plugin for Eclipes. Very handy. RegEx's make my brain hurt. http://www.bastian-bergerhoff.com/eclipse/features/web/QuickREx/toc.html There is a stand alone version http://www.bastian-bergerhoff.com/eclipse/features/web/QuickREx/standalone.html -- All you need in this

Re: regex help

2008-02-15 Thread Jason Morgan
EDIT: The regex should be this one instead. The one above would not handle any thing between the href= and the closing . (a[^]*href=['](([^']*)?([^']ProductID=?([^']*)[^']*))['][^]*([^]*)\/a) ~| Adobe® ColdFusion® 8

Re: regex help

2008-02-15 Thread Jason Morgan
Hi here is a regex that should do the job. It does a little more that you are asking for. I felt like playing around with the regex. cfsavecontent variable=regex(a[^]*href=['](([^']*)?([^']ProductID=?([^']*)[^']*))[']([^]*)\/a)/cfsavecontent cfsavecontent variable=text a style=mystyle:as;

Re: regex help

2008-02-15 Thread cf coder
I would prefer the regular expression to do this. Can you show me how to do what you are suggesting please? If you don't manage to get what you're after. Just loop over the array and look for the string. Adrian Hello everybody, I need some help with regular expressions. I'm trying to write a

Re: regex help

2008-02-15 Thread Claude Schneegans
I need some help with regular expressions. What you need is the kind of requirement I made CF_REextract for. See http://www.contentbox.com/claude/customtags/REextract/testREextract.cfm ~| Adobe® ColdFusion® 8 software 8 is the

RE: regex help

2008-02-15 Thread Bobby Hartsfield
I wasn't very strict with ensuring that the string was found in a/a tags... although it would be simple to add if you need that... I only made sure that it was either productid=NUMBER or ?productID=NUMBER (regardless of case) I just wanted to make sure that I got a simple solution posted before

Bad Word Regex Help

2007-12-17 Thread Mark Henderson
Normally I would just use boundaries (\b) for this, but since the current platform is running CF5, that's not an option. For all you regex people out there, all I want to do is test a string for the existence of any bad words. cfset badWordList = lots,of,bad,words,here / cfloop

Re: Bad Word Regex Help

2007-12-17 Thread Claude Schneegans
Normally I would just use boundaries (\b) for this, but since the current platform is running CF5 How about (non tested) reReplaceNoCase(attributes.replacedString, ([^a-zA-Z])#wordKey#([^a-zA-Z]), \1**CENSORED**\2, all) but be aware that any one really will to use badwords will just have

RE: Bad Word Regex Help

2007-12-17 Thread Mark Henderson
Hi Claude, Thanks for the help. How about (non tested) reReplaceNoCase(attributes.replacedString, ([^a-zA-Z])#wordKey#([^a-zA-Z]), \1**CENSORED**\2, all) I tried something similar earlier, and tested your suggestion just now:

Re: Bad Word Regex Help

2007-12-17 Thread Claude Schneegans
the above regex seems to be checking for any alpha characters either before or after the bad word It's the opposite: it is checking for one character which is NOT alpha, before AND after. The only thing I'm not sure is if it will match in the case of the beginning and the end of the string.

RE: Bad Word Regex Help

2007-12-17 Thread Mark Henderson
The only thing I'm not sure is if it will match in the case of the beginning and the end of the string. Better make sure, try : (^|[^a-zA-Z])#wordKey#([^a-zA-Z]|$) Awesome, thanks! Pardon my previous inept description, as I know the carrot means 'not'. Mark

Re: CF5 Regex Help

2007-09-20 Thread Ben Doom
loop list=yourtext delimiter=chr(10) index = i rereplace(i, (b|i)+(.?)(/b|/i)+.*, \2) /loop Not tested, and there is probably a better way. If this were brought up on CF-RegEx, I think I can guarantee a lively (and nostalgic) discussion of CF5 workarounds. --Ben the out-of-practice RegEx

CF5 Regex Help

2007-09-19 Thread Jim McAtee
I need to run this on our CF5 server: I have some large text fields containing HTML, most of which have some variation of the following HTML snippet at the beginning: biSome text/i/b More text and HTML follows... ibSome more text/i/b More text and HTML follows... ibYet some more text/b/i More

Re: CF5 Regex Help

2007-09-19 Thread Claude Schneegans
I need a regex that will let me extract and remove the leading text Hi, this is a perfect job for CF_REextract. See http://www.contentbox.com/claude/customtags/REextract/testREextract.cfm -- ___ REUSE CODE! Use custom tags; See

RE: Regex help with search strings

2007-07-27 Thread Mark Henderson
Bobby Hartsfield wrote: My brother's name is Justin William Eugene Mckinney III. That might throw you for a loop. It will really throw you for a loop when it is Justin William Eugene Mckinney III PHD Or Dr. Justin William Eugene Mckinney III Hi Bobby Yep, I considered this type of thing

Re: Regex help with search strings

2007-07-26 Thread Ben Doom
You could do this with a regex but it would be easier and more efficient to do it with listfind() using a space as the delimiter. --Ben Doom Mark Henderson wrote: Hi I have a search box that currently contains only one field. I normally have one input for first name, one for lat name and

Regex help with search strings

2007-07-26 Thread Mark Henderson
Hi I have a search box that currently contains only one field. I normally have one input for first name, one for lat name and so on, which makes the task of searching somewhat easier. However, in this scenario that is not the case. So, what I want to do is split the search term entered into

Re: Regex help with search strings

2007-07-26 Thread Jide Aliu
From what you're saying, you probably might not need Regex. How about GetToken? cfset SearchField = Joe Bloggs cfset var1 = GetToken(trim(SearchField), 1, ) cfset var2 = GetToken(trim(SearchField), 2, ) Am I barking up the wrong tree?

RE: Regex help with search strings

2007-07-26 Thread Bobby Hartsfield
PROTECTED] Sent: Wednesday, July 25, 2007 6:19 PM To: CF-Talk Subject: Regex help with search strings Hi I have a search box that currently contains only one field. I normally have one input for first name, one for lat name and so on, which makes the task of searching somewhat easier. However

RE: Regex help with search strings

2007-07-26 Thread Mark Henderson
From: Ben Doom Sent: Friday, 27 July 2007 2:17 a.m. To: CF-Talk Subject: Re: Regex help with search strings You could do this with a regex but it would be easier and more efficient to do it with listfind() using a space as the delimiter. Hi Ben. I worked it out using a regex but I

RE: Regex help with search strings

2007-07-26 Thread Mark Henderson
From: Mark Henderson Sent: Thursday, 26 July 2007 10:19 a.m. To: CF-Talk Subject: Regex help with search strings Hi I have a search box that currently contains only one field. I normally have one input for first name, one for lat name and so on, which makes the task of searching

Regex help looking for a name in a string.

2007-04-27 Thread Will Swain
Ok, no doubt this is an easy RegEx question, but not for me. I have two queries. One returns a set of names, the other a string which may or may not contain one or more of the names. I want to check for the existence of a name in the string, and if I find it, make it a hyperlink. So far I

RE: Regex help looking for a name in a string.

2007-04-27 Thread Gaulin, Mark
Is there a delimited in the list of names (work_string), something that you can include in your reg ex to anchor it to an entire entry? Mark -Original Message- From: Will Swain [mailto:[EMAIL PROTECTED] Sent: Friday, April 27, 2007 5:27 AM To: CF-Talk Subject: Regex help looking

RE: Regex help looking for a name in a string.

2007-04-27 Thread Bobby Hartsfield
-Talk Subject: Regex help looking for a name in a string. Ok, no doubt this is an easy RegEx question, but not for me. I have two queries. One returns a set of names, the other a string which may or may not contain one or more of the names. I want to check for the existence of a name in the string

Re: Regex help looking for a name in a string.

2007-04-27 Thread Zaphod Beeblebrox
It does really look like your using Regex's. Since you're looking for strings essentially, can't you just use ReplaceNoCase? On 4/27/07, Will Swain [EMAIL PROTECTED] wrote: Ok, no doubt this is an easy RegEx question, but not for me. I have two queries. One returns a set of names, the other a

Re: Regex help looking for a name in a string.

2007-04-27 Thread Zaphod Beeblebrox
that should be It doesn't really look like your using Regex's On 4/27/07, Zaphod Beeblebrox [EMAIL PROTECTED] wrote: It does really look like your using Regex's. Since you're looking for strings essentially, can't you just use ReplaceNoCase? On 4/27/07, Will Swain [EMAIL PROTECTED] wrote:

RE: Regex help looking for a name in a string.

2007-04-27 Thread Will Swain
[mailto:[EMAIL PROTECTED] Sent: 27 April 2007 13:27 To: CF-Talk Subject: RE: Regex help looking for a name in a string. Is there a delimited in the list of names (work_string), something that you can include in your reg ex to anchor it to an entire entry? Mark -Original Message

Re: Regex help looking for a name in a string.

2007-04-27 Thread James Holmes
Are the names delimited by something (like commas) or just strung together? On 4/27/07, Will Swain wrote: Ok, no doubt this is an easy RegEx question, but not for me. I have two queries. One returns a set of names, the other a string which may or may not contain one or more of the names. I

RE: Regex help looking for a name in a string.

2007-04-27 Thread Will Swain
Hi James, See my previous reply. They aren't delimited by anything in particular. Thanks. will -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: 27 April 2007 14:27 To: CF-Talk Subject: Re: Regex help looking for a name in a string. Are the names delimited

RE: Regex help looking for a name in a string.

2007-04-27 Thread Will Swain
Sure. But it still wouldn't work. :) -Original Message- From: Zaphod Beeblebrox [mailto:[EMAIL PROTECTED] Sent: 27 April 2007 13:56 To: CF-Talk Subject: Re: Regex help looking for a name in a string. It does really look like your using Regex's. Since you're looking for strings

RE: Regex help looking for a name in a string.

2007-04-27 Thread Gaulin, Mark
be described and wil work, so that's something. Mark -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Friday, April 27, 2007 8:47 AM To: CF-Talk Subject: RE: Regex help looking for a name in a string. Reorder by length so the longer names come first. Also

RE: Regex help looking for a name in a string.

2007-04-27 Thread Leitch, Oblio
Well, I've got a couple of comments, for what they're worth. First, you're not using RegEx. Next, it appears that what you're doing here: cfset works_string = qry_getEvent.works cfloop query=qry_getProfiles cfset works_string = REReplaceNoCase(#works_string#,

RE: Regex help looking for a name in a string.

2007-04-27 Thread Will Swain
Hi Bobby, Out of interest, how would I reorder by length? In the query? MySQL 4.1.7 Thanks Will -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: 27 April 2007 13:47 To: CF-Talk Subject: RE: Regex help looking for a name in a string. Reorder by length so

RE: Regex help looking for a name in a string.

2007-04-27 Thread Will Swain
an alternative approach might be in order here... -Original Message- From: Leitch, Oblio [mailto:[EMAIL PROTECTED] Sent: 27 April 2007 14:48 To: CF-Talk Subject: RE: Regex help looking for a name in a string. Well, I've got a couple of comments, for what they're worth. First, you're not using

RE: Regex help looking for a name in a string.

2007-04-27 Thread Bobby Hartsfield
Yes, Do it in your query. Try this... Select artist From tablename Order by length(artist) -Original Message- From: Will Swain [mailto:[EMAIL PROTECTED] Sent: Friday, April 27, 2007 10:24 AM To: CF-Talk Subject: RE: Regex help looking for a name in a string. Hi Bobby, Out of interest

RE: Regex help looking for a name in a string.

2007-04-27 Thread Bobby Hartsfield
help looking for a name in a string. Yes, Do it in your query. Try this... Select artist From tablename Order by length(artist) -Original Message- From: Will Swain [mailto:[EMAIL PROTECTED] Sent: Friday, April 27, 2007 10:24 AM To: CF-Talk Subject: RE: Regex help looking for a name

RE: Regex help looking for a name in a string.

2007-04-27 Thread Bobby Hartsfield
thetext = replace(thetext, **#currentrow#**, a href='mypage.cfm?var=#artist#'#artist#/a, all) / /cfloop That did the trick for me. -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Friday, April 27, 2007 3:34 PM To: CF-Talk Subject: RE: Regex help looking for a name

RE: Regex help looking for a name in a string.

2007-04-27 Thread Will Swain
Good plan. I reckon that will work. Now to play with the regex... Cheers w -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: 27 April 2007 20:34 To: CF-Talk Subject: RE: Regex help looking for a name in a string. I don't know what I was thinking but that wont

RE: Regex help looking for a name in a string.

2007-04-27 Thread Will Swain
That's sweet Bobby - seems to work a treat. Thanks very much. Will -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: 27 April 2007 20:43 To: CF-Talk Subject: RE: Regex help looking for a name in a string. Or a couple loops !--- loop the query and replace

RE: Regex help looking for a name in a string.

2007-04-27 Thread Bobby Hartsfield
Sorry, Should have said that you DO still have to: order by length(artist) desc -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Friday, April 27, 2007 3:43 PM To: CF-Talk Subject: RE: Regex help looking for a name in a string. Or a couple loops !--- loop

RE: Regex help looking for a name in a string.

2007-04-27 Thread Will Swain
Thanks Bobby, I owe you a beer. And not just for this but for http://www.acoderslife.com/news/index.cfm?storyid=7 too!! Will -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: 27 April 2007 21:21 To: CF-Talk Subject: RE: Regex help looking for a name in a string

RE: Regex help looking for a name in a string.

2007-04-27 Thread Bobby Hartsfield
Haha! Beer may have played a part in that article... oh and I accept the beer. ;-) Cheers! -Original Message- From: Will Swain [mailto:[EMAIL PROTECTED] Sent: Friday, April 27, 2007 5:01 PM To: CF-Talk Subject: RE: Regex help looking for a name in a string. Thanks Bobby, I owe you

RegEx help

2007-03-20 Thread Mark Leder
I'm really not very good at this, so I'm grateful for any help. I've been using one of those regex editors, but I just can't seem to get my head around the way it's used (regEx buddy). What I want to do is take a URL string, such as /level-1/2nd-level/index.cfm and just keep the string which is

Re: RegEx help

2007-03-20 Thread Gareth Hughes
listFirst(/level-1/2nd-level/index.cfm,/) maybe? - Original Message - From: Mark Leder [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Tuesday, March 20, 2007 9:03 PM Subject: RegEx help I'm really not very good at this, so I'm grateful for any help. I've been using one

RE: RegEx help

2007-03-20 Thread Ben Nadel
www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: Mark Leder [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 20, 2007 5:03 PM To: CF-Talk Subject: RegEx help I'm really not very good at this, so I'm grateful for any help. I've been using one of those

RE: RegEx help

2007-03-20 Thread Ben Nadel
:[EMAIL PROTECTED] Sent: Tuesday, March 20, 2007 5:07 PM To: CF-Talk Subject: Re: RegEx help listFirst(/level-1/2nd-level/index.cfm,/) maybe? - Original Message - From: Mark Leder [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Tuesday, March 20, 2007 9:03 PM Subject: RegEx

RE: RegEx help

2007-03-20 Thread Mark Leder
Thanks to all, Gareth's solution works great. Though I want to study Ben's more (one first glance I got bug-eyed looking at it). Thanks, Mark ~| ColdFusion MX7 and Flex 2 Build sales marketing dashboard RIA’s for

RE: Regex Help

2007-02-13 Thread Steve LaBadie
Message- From: Ben Doom [mailto:[EMAIL PROTECTED] Sent: Monday, February 12, 2007 7:00 PM To: CF-Talk Subject: Re: Regex Help ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform

Regex Help

2007-02-12 Thread Steve LaBadie
I have been playing around with some regex patterns and have run into a snag. One issue the regex works differently in IE6 and Firefox. I didn't know the regex would behave differently in these browsers. The main issue is validating the use of character class (@#$^_*). Do I need to escape these?

RE: Regex Help

2007-02-12 Thread Bobby Hartsfield
Message- From: Steve LaBadie [mailto:[EMAIL PROTECTED] Sent: Monday, February 12, 2007 8:29 AM To: CF-Talk Subject: Regex Help I have been playing around with some regex patterns and have run into a snag. One issue the regex works differently in IE6 and Firefox. I didn't know the regex would

RE: Regex Help

2007-02-12 Thread Bobby Hartsfield
All of those will need to be escaped when literally trying to match them + * ? . [ ^ $ ( ) { | \ All of THESE not those :-) -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Monday, February 12, 2007 10:08 AM To: CF-Talk Subject: RE: Regex Help You will need

RE: Regex Help

2007-02-12 Thread Steve LaBadie
Bobby, I get an invalid token | found error. To answer your question my match is predicated on one of these characters (@#$^_*) being present. ^(?=.*[A-Za-z])(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?!.*[^A-Za-z0-9@|#|\$|\ ^|_|\*])(?!.*s).{8,127}$

Re: Regex Help

2007-02-12 Thread Ben Doom
Since you say that it behaves differently in IE vs FF, does that mean that you are writing these in JavaScript? Are they being passed in a CFForm tag, or sent directly? Are you double-pounding (##) as necessary to escape the pound sign in a CFOUTPUT block? --Ben Doom Steve LaBadie wrote:

RE: Regex Help

2007-02-12 Thread Steve Brownlee
of the characters in the string should be non-alphanumeric. Hope that helps. Steve Brownlee http://www.fusioncube.net/ -Original Message- From: Steve LaBadie [mailto:[EMAIL PROTECTED] Sent: Monday, February 12, 2007 10:39 AM To: CF-Talk Subject: RE: Regex Help Bobby, I get an invalid token | found

RE: Regex Help

2007-02-12 Thread Steve LaBadie
The only thing I am using JS for is to compare that the passwords match. I am using CFFORM CFINPUT. cfinput type=text name=pass maxlength=127 size=28 validate=regular_expression pattern=^(?=.*[A-Za-z])(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?!.*[^A-Za-z0- 9])(?!.*s).{8,127}$ class=formveld / cfinput

RE: Regex Help

2007-02-12 Thread Steve LaBadie
Steve, I still get an invalid token error Steve LaBadie, Web Manager East Stroudsburg University 200 Prospect St. East Stroudsburg, Pa 18301 570-422-3999 [EMAIL PROTECTED] http://www.esu.edu ~| Upgrade to Adobe ColdFusion MX7

RE: Regex Help

2007-02-12 Thread Steve Brownlee
To: CF-Talk Subject: Regex Help I have been playing around with some regex patterns and have run into a snag. One issue the regex works differently in IE6 and Firefox. I didn't know the regex would behave differently in these browsers. The main issue is validating the use of character class

RE: Regex Help

2007-02-12 Thread Steve LaBadie
: Steve Brownlee [mailto:[EMAIL PROTECTED] Sent: Monday, February 12, 2007 11:13 AM To: CF-Talk Subject: RE: Regex Help Steve, As for the CFML construct not found message, I'm going out on a limb and guessing it's because you have the pound sign in the regular expression. Somehow that's messing up

RE: Regex Help

2007-02-12 Thread Steve Brownlee
/ -Original Message- From: Steve LaBadie [mailto:[EMAIL PROTECTED] Sent: Monday, February 12, 2007 11:30 AM To: CF-Talk Subject: RE: Regex Help Steve, I doubled the # in the code and it worked in Firefox, but does not work in IE6 Why would that be? Steve LaBadie, Web Manager East Stroudsburg

RE: Regex Help

2007-02-12 Thread Steve LaBadie
I get an alert box that appears that says error in password text Steve LaBadie, Web Manager East Stroudsburg University 200 Prospect St. East Stroudsburg, Pa 18301 570-422-3999 [EMAIL PROTECTED] http://www.esu.edu ~| Upgrade

Re: Regex Help

2007-02-12 Thread Ben Doom
I'm pretty sure that IE6's JS engine does not correctly handle lookaheads. IIRC, rather than performing an actual lookahead, it goes ahead and eats the characters. Your best bet with this might be to check length with JS (cfform) and do the rest of the checking serverside. --Ben Doom Steve

RE: RegEx help

2006-11-28 Thread Steve Brownlee
You could try this... \b[(\d+|\w+)]{6,12}\b -Original Message- From: Chris Alvarado [mailto:[EMAIL PROTECTED] Sent: Monday, November 27, 2006 9:08 AM To: CF-Talk Subject: RegEx help Hello all, Im a bit rusty with regular expressions and I know this is an easy one so im

RE: RegEx help

2006-11-28 Thread Steve Brownlee
Forget my attempt, Patrick's works perfectly. -Original Message- From: Steve Brownlee [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 28, 2006 2:29 PM To: CF-Talk Subject: RE: RegEx help You could try this... \b[(\d+|\w+)]{6,12}\b

RE: RegEx help

2006-11-28 Thread Bobby Hartsfield
Hartsfield http://acoderslife.com -Original Message- From: Steve Brownlee [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 28, 2006 2:47 PM To: CF-Talk Subject: RE: RegEx help Forget my attempt, Patrick's works perfectly. -Original Message- From: Steve Brownlee [mailto

RE: RegEx help

2006-11-28 Thread Steve Brownlee
: RE: RegEx help No it doesn't. Neither does yours. Patrick's was closer though. The only thing I could find that it failed on was an all numeric string 6 to 12 characters long. Yours failed for that as well as a string of all letters 6 to 12 characters long. Where's Ben Doom? lol

RE: RegEx help

2006-11-28 Thread Bobby Hartsfield
: RE: RegEx help What engine are you testing with? Patrick's pattern validates against all numeric, all alpha, and mixed against Perl 5, JDK 1.4 and JDK 1.5 implmenetations. -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 28, 2006 3:19 PM

Re: RegEx help

2006-11-28 Thread Patrick McElhaney
On 11/28/06, Steve Brownlee [EMAIL PROTECTED] wrote: What engine are you testing with? Patrick's pattern validates against all numeric, all alpha, and mixed against Perl 5, JDK 1.4 and JDK 1.5 implmenetations. He's saying all numeric isn't valid; there must be at least one letter. If you

RE: RegEx help

2006-11-28 Thread Bobby Hartsfield
: Patrick McElhaney [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 28, 2006 4:09 PM To: CF-Talk Subject: Re: RegEx help On 11/28/06, Steve Brownlee [EMAIL PROTECTED] wrote: What engine are you testing with? Patrick's pattern validates against all numeric, all alpha, and mixed against Perl 5, JDK

RE: RegEx help

2006-11-28 Thread Steve Brownlee
(as shown above). Steve Brownlee http://www.fusioncube.net -Original Message- From: Bobby Hartsfield [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 28, 2006 4:27 PM To: CF-Talk Subject: RE: RegEx help '1a11' fails 'a1aa' fails '1a' fails 'a1' fails

RE: RegEx help

2006-11-28 Thread Ben Nadel
MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: Steve Brownlee [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 28, 2006 5:20 PM To: CF-Talk Subject: RE: RegEx help Sorry, can't get this outta my head now. Too interesting

<    1   2   3   4   5   6   7   >