RE: Regex help maybe

2014-07-22 Thread UXB
Thanks to everyone. I managed to come up with one similar to Byron's example and then tweaked it further (No spaces) so I could use it in JS on the client and CF on the server. I knew I could do it in 2 or three steps but wanted one step so I could hand off the regex to the client for

Regex help maybe

2014-07-21 Thread UXB
I am terrible at Regex's. I looked all over and am going blind. Is there anyone here that can shorted my search? I need one to test true for: 10 to 20 Characters in length 3 numeric characters in any order 1 special character from basic list ~!@#$%^*()_+ Any help is appreciated. Dennis

RE: Regex help maybe

2014-07-21 Thread Duane Boudreau
Can't really help you with the regex, but regexlib.com might help you with future ones. I use it whenever I need a regular expressions -Original Message- From: UXB [mailto:denn...@uxbinternet.com] Sent: Monday, July 21, 2014 6:30 PM To: cf-talk Subject: Regex help maybe I am terrible

Re: Regex help maybe

2014-07-21 Thread Michael Dinowitz
X{10,20} means that X should exist at least 10 times but no more than 20 times [0-9] means any single number from 0 till 9 [0-9]{3} means any 3 numbers of 0-9 one after the other [~!@#$%^*()_+] means a single character from the set of characters defined between the brackets Now do you want 3

Re: Regex help maybe

2014-07-21 Thread Claude Schnéegans
I need one to test true for: I doubt you can do this with only one test, but using 3 tests is easy: 10 to 20 Characters in length 3 numeric characters in any order 1 special character from basic list ~!@#$%^*()_+ This should do it: CFSET stringOK = (len(form.text) GTE 20 AND len(form.text)

Re: Regex help maybe

2014-07-21 Thread Byron Mann
This would do one special, 3 consecutive numbers: ajfds123jdfs# ^(?=.*\d{3})(?=.*[\~\!\@\#\$\%\^\\*\(\)\_\+]+).{10,20}$ This would do one special, 3 numbers any position: a#bcdef2k3#4^ ^(?=.*\d.*\d.*\d)(?=.*[\~\!\@\#\$\%\^\\*\(\)\_\+]+).{10,20}$ And if your restricting to just numbers and the

Need RegEx help for unknown/odd characters.

2013-05-17 Thread Che Vilnonis
Good afternoon. Occasionally when parsing a RSS feed, I get RSS data I cannot parse. Click for screenshot below (text highlighted in green). In this example, Montreal should return Montréal but does not. What regex could I use to remove or replace such odd characters?

Re: Need RegEx help for unknown/odd characters.

2013-05-17 Thread Nathan Strutz
How about deAccent() ? http://cflib.org/udf/deAccent nathan strutz [www.dopefly.com] [hi.im/nathanstrutz] On Wed, May 15, 2013 at 9:20 AM, Che Vilnonis ch...@asitv.com wrote: Good morning. Occasionally when parsing a RSS feed, I get RSS data I cannot parse. Click for screenshot below

RE: Need RegEx help for unknown/odd characters.

2013-05-17 Thread Che Vilnonis
Nathan, the problem is that within the feed itself, the characters don't have accents. When output to a browser, they funky chars display on screen with odd geometric shapes like an upright rectangle. They're like odd ascii chars that I have only seen a few time before. In the end, I can't insert

Re: Need RegEx help for unknown/odd characters.

2013-05-17 Thread Kris Jones
How about making sure the charset is set properly. I have seen this kind of thing when not setting to UTF-8. This can be a problem either on the ingesting, or when the feed is written. On Fri, May 17, 2013 at 2:25 PM, Che Vilnonis ch...@asitv.com wrote: Nathan, the problem is that within

Need RegEx help for unknown/odd characters.

2013-05-16 Thread Che Vilnonis
Good morning. Occasionally when parsing a RSS feed, I get RSS data I cannot parse. Click for screenshot below (text highlighted in green). In this example, Montreal should return Montréal but does not. What regex could I use to remove or replace such odd characters?

Regex help needed

2011-02-14 Thread Matthew Friedman
I am having an issue creating a regex to strip out the XML content that Word 2007 is adding our HTML editor. we are using TINYMEC and when one of our client upgraded recently it has created a large number of issues. what we need to do is to pull out the flowing content. it starts with

Re: Regex help needed

2011-02-14 Thread Matthew Friedman
FYI I figure it out was simple once you looked at the content. since it is all in commented tags ReReplaceNoCase(str,!--(.*?)--, , ALL); Just incase anyone else has this issue. I am having an issue creating a regex to strip out the XML content that Word 2007 is adding our HTML editor.

Re: Regex Help

2010-07-27 Thread Michael Grant
PM To: cf-talk Subject: RE: Regex Help Sigh... .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Andy Matthews [mailto:li...@commadelimited.com] Sent: Monday, July 26, 2010 3:03 PM To: cf-talk Subject: RE: Regex Help [Completely

RE: Regex Help

2010-07-27 Thread Robert Harrison
be either/or.  It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged -Original Message- From: Michael Grant [mailto:mgr...@modus.bz] Sent: Monday, July 26, 2010 9:15 PM To: cf-talk Subject: Re: Regex Help I hope he does because your post literally made me

Re: Regex Help

2010-07-27 Thread Michael Grant
-williams.com/unplugged -Original Message- From: Michael Grant [mailto:mgr...@modus.bz] Sent: Monday, July 26, 2010 9:15 PM To: cf-talk Subject: Re: Regex Help I hope he does because your post literally made me laugh out loud. On Mon, Jul 26, 2010 at 8:52 PM, andy matthews li

RE: Regex Help

2010-07-27 Thread Robert Harrison
Why not use url rewrite instead? What's that? Have a link? Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. 

Re: Regex Help

2010-07-27 Thread Michael Grant
http://en.wikipedia.org/wiki/Rewrite_engine On Tue, Jul 27, 2010 at 11:17 AM, Robert Harrison rob...@austin-williams.com wrote: Why not use url rewrite instead? What's that? Have a link? Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite

RE: Regex Help

2010-07-27 Thread Robert Harrison
Message- From: Robert Harrison [mailto:rob...@austin-williams.com] Sent: Tuesday, July 27, 2010 11:17 AM To: cf-talk Subject: RE: Regex Help Why not use url rewrite instead? What's that? Have a link? Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite

RE: Regex Help

2010-07-27 Thread Andy Matthews
: Tuesday, July 27, 2010 10:05 AM To: cf-talk Subject: Re: Regex Help Why not use url rewrite instead? This type of thing is perfect for it, plus none of your existing links will break. On Tue, Jul 27, 2010 at 10:55 AM, Robert Harrison rob...@austin-williams.com wrote: I knew you were kidding

RE: Regex Help

2010-07-27 Thread Andy Matthews
/ and pass it to index.cfm as verb=categoryterm=jQuery andy -Original Message- From: Robert Harrison [mailto:rob...@austin-williams.com] Sent: Tuesday, July 27, 2010 10:24 AM To: cf-talk Subject: RE: Regex Help Why not use url rewrite instead? If it's this: http://learn.iis.net/page.aspx

Re: Regex Help

2010-07-27 Thread Dave Watts
I converting all my URLs from the old variable scheme (i.e., news.cfm?id=7) to the stupid SEO spoonfeed urls (i.e., news.cfm/this-is-my-article-for-stupid-lazy-google-programmers-who-cant-unde rstand-variables). I hate this. I now believe Google has supplanted Microsoft as the most evil

RE: Regex Help

2010-07-27 Thread Robert Harrison
Fixing the current links within your site so that they're search engine safe will actually break ALL of your indexed links within Google, or Yahoo, etc. In this case I put in a hook old so the old links still work. They do a 301 redirect to the new link schema. That should cover the search

Re: Regex Help

2010-07-27 Thread Michael Grant
Robert: Decided I'd check out your site. This page is messed up: http://www.austin-williams.com/people/ Barbara Espisito's mini bio is all screwy. (Ironic that she's the copy chief.) Looking at the source it looks like your db entry for her is mangled pretty badly. On another note, who took

RE: Regex Help

2010-07-27 Thread Bobby Hartsfield
Absolutely... nd I thought it was pretty funny :-) .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: andy matthews [mailto:li...@commadelimited.com] Sent: Monday, July 26, 2010 8:52 PM To: cf-talk Subject: RE: Regex Help You know I

RE: Regex Help

2010-07-27 Thread Robert Harrison
Hmmm. Those pages are static and http://www.austin-williams.com/people/barbara-esposito.cfm looks fine from here. What are you seeing? What browser are you on? As far as the pictures, I'm the Technology Director, not the Creative Director. That is ground on which I do not tread :-) Robert

Re: Regex Help

2010-07-27 Thread Michael Grant
It was on the link I posted. However after going to it again I see it's not outputting the same as it was. Weird. I'm on chrome. Her text description was displaying hundreds of little rectangles. Like when character encoding is improper. On Tue, Jul 27, 2010 at 12:28 PM, Robert Harrison

Re: Regex Help

2010-07-27 Thread denstar
This is neither here nor there, but the URLRewriteFilter can go on the actual application server, thus negating the need for IIS or Apache intervention, and as an added bonus, can do outbound rules as well. This means that you don't need to change your internal links from:

Regex Help

2010-07-26 Thread Robert Harrison
I want to replace any occurrence of multiple -- in string so the entire string only contains one - in a row after filtering. Something like this does (sort of): #Replacelist(#mayvar#,-,,---,--,-,-,-,-)# But with regex more like: #ReReplace(#myvar#,--,-,ALL)# How do I

Re: Regex Help

2010-07-26 Thread Charlie Griefer
rereplace( myvar, '-+', '-', 'all' ) On Mon, Jul 26, 2010 at 10:59 AM, Robert Harrison rob...@austin-williams.com wrote: I want to replace any occurrence of multiple -- in string so the entire string only contains one - in a row after filtering. Something like this does (sort of):

Re: Regex Help

2010-07-26 Thread Michael Grant
OT: Isn't regex elegant? Often very cryptic but any solution where I've used regex seems both sophisticated and simple. As you were. ~| Order the Adobe Coldfusion Anthology now!

RE: Regex Help

2010-07-26 Thread Robert Harrison
be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged -Original Message- From: Charlie Griefer [mailto:charlie.grie...@gmail.com] Sent: Monday, July 26, 2010 2:04 PM To: cf-talk Subject: Re: Regex Help rereplace( myvar, '-+', '-', 'all' ) On Mon, Jul 26, 2010

RE: Regex Help

2010-07-26 Thread Andy Matthews
http://www.cftagstore.com/tags/cfreextract.cfm :) -Original Message- From: Robert Harrison [mailto:rob...@austin-williams.com] Sent: Monday, July 26, 2010 1:00 PM To: cf-talk Subject: Regex Help I want to replace any occurrence of multiple -- in string so the entire string only

Re: Regex Help

2010-07-26 Thread Charlie Griefer
: Regex Help I want to replace any occurrence of multiple -- in string so the entire string only contains one - in a row after filtering. Something like this does (sort of): #Replacelist(#mayvar#,-,,---,--,-,-,-,-)# But with regex more like: #ReReplace(#myvar

RE: Regex Help

2010-07-26 Thread Bobby Hartsfield
Sigh... .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Andy Matthews [mailto:li...@commadelimited.com] Sent: Monday, July 26, 2010 3:03 PM To: cf-talk Subject: RE: Regex Help [Completely irrelevant link removed] :) -Original

RE: Regex Help

2010-07-26 Thread andy matthews
You know I was kidding right? -Original Message- From: Bobby Hartsfield [mailto:bo...@acoderslife.com] Sent: Monday, July 26, 2010 6:21 PM To: cf-talk Subject: RE: Regex Help Sigh... .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message

Re: Regex Help

2010-07-26 Thread Dan Baughman
Subject: RE: Regex Help Sigh... .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Andy Matthews [mailto:li...@commadelimited.com] Sent: Monday, July 26, 2010 3:03 PM To: cf-talk Subject: RE: Regex Help [Completely irrelevant link

RE: RegEx help

2010-06-08 Thread Debbie Morris
: Monday, June 07, 2010 4:27 PM To: cf-talk Subject: RE: RegEx help Assuming that those are tabs between the elements, the following will expand on Andy's suggestion. cfset testString = Case Information Problem:diff breathing Patients:1 Four commandment Information Age:2 months

RE: RegEx help

2010-06-08 Thread Bobby Hartsfield
- From: Debbie Morris [mailto:dmor...@sussexcountyde.gov] Sent: Tuesday, June 08, 2010 10:23 AM To: cf-talk Subject: RE: RegEx help Thanks for the help, Jason and Andy. Turns out the character apparently isn't a tab though. Viewing it in WireShark, it looks like there is a carriage return (0d

Re: RegEx help

2010-06-08 Thread Michael Grant
://acoderslife.com -Original Message- From: Debbie Morris [mailto:dmor...@sussexcountyde.gov] Sent: Tuesday, June 08, 2010 10:23 AM To: cf-talk Subject: RE: RegEx help Thanks for the help, Jason and Andy. Turns out the character apparently isn't a tab though. Viewing it in WireShark

RE: RegEx help

2010-06-08 Thread Bobby Hartsfield
Oh. I never saw mention of that... and I think it's a she ;-) .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Michael Grant [mailto:mgr...@modus.bz] Sent: Tuesday, June 08, 2010 11:06 AM To: cf-talk Subject: Re: RegEx help I think he

Re: RegEx help

2010-06-08 Thread Michael Grant
;-) .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com -Original Message- From: Michael Grant [mailto:mgr...@modus.bz] Sent: Tuesday, June 08, 2010 11:06 AM To: cf-talk Subject: Re: RegEx help I think he wants to make it part of the t-sql code. Do you really need

Re: RegEx help

2010-06-08 Thread Kris Jones
How about something like this: cfset arFound = refindnocase(Age:([^\r\n|\r|\n]*)[\r\n|\r|\n],thestring,1,true) / cfoutput#mid(thestring,arFound[pos][1],arFound[len][1])#/cfoutput Cheers, Kris ~| Order the Adobe Coldfusion

Re: RegEx help

2010-06-08 Thread Kris Jones
Rather, that would be, if you don't want the label of the field: cfoutput#mid(thestring,arFound[pos][2],arFound[len][2])#/cfoutput Cheers, Kris On Tue, Jun 8, 2010 at 11:43 AM, Kris Jones kris.jon...@verizon.net wrote: How about something like this: cfset arFound =

RE: RegEx help

2010-06-08 Thread Jason Fisher
08, 2010 10:24 AM To: cf-talk cf-talk@houseoffusion.com Subject: RE: RegEx help Thanks for the help, Jason and Andy. Turns out the character apparently isn't a tab though. Viewing it in WireShark, it looks like there is a carriage return (0d), a line feed (0a) and a space (20) between the age

RE: RegEx help

2010-06-08 Thread Debbie Morris
Fisher [mailto:ja...@wanax.com] Sent: Tuesday, June 08, 2010 11:40 AM To: cf-talk Subject: RE: RegEx help Debbie, Where 'testString' is your content, try this: cfset test = reFind(Age:([0-9a-zA-Z ]+)\s*\n, testString, 1, true) / cfoutput#mid(testString, test.pos[2], test.len[2])#/cfoutput

RE: RegEx help

2010-06-08 Thread Bobby Hartsfield
Fisher [mailto:ja...@wanax.com] Sent: Tuesday, June 08, 2010 11:40 AM To: cf-talk Subject: RE: RegEx help Debbie, Where 'testString' is your content, try this: cfset test = reFind(Age:([0-9a-zA-Z ]+)\s*\n, testString, 1, true) / cfoutput#mid(testString, test.pos[2], test.len[2])#/cfoutput

RegEx help

2010-06-07 Thread Debbie Morris
I need to extract a particular piece of data from one of my query fields and I'm not sure how to go about it. We have incidents in one table that can have comments in another table associated with them. Here's an example of one of the comments in my query results that I need to grab data

RE: RegEx help

2010-06-07 Thread Andy Matthews
: Debbie Morris [mailto:ddicker...@macromedia.com] Sent: Monday, June 07, 2010 1:51 PM To: cf-talk Subject: RegEx help I need to extract a particular piece of data from one of my query fields and I'm not sure how to go about it. We have incidents in one table that can have comments in another table

RE: RegEx help

2010-06-07 Thread Jason Fisher
-Z ]+)\t, testString, 1, true) / cfoutput#mid(testString, test.pos[2], test.len[2])#/cfoutput From: Andy Matthews li...@commadelimited.com Sent: Monday, June 07, 2010 3:32 PM To: cf-talk cf-talk@houseoffusion.com Subject: RE: RegEx help If you can always

Re: Regex help with invalid HTML

2009-11-17 Thread Peter Boughton
I have no control over this code The only time parsing HTML with RegEx might be remotely viable is when you know what that code will be - if the HTML is uncontrolled then using RegEx is a futile effort. RegEx is for dealing with Regular text, and HTML is not a Regular language - even

RE: Regex help with invalid HTML

2009-11-17 Thread Mark Henderson
List wrote at 17 November 2009 14:32: Andy matthews, you're welcome. Ah hah, that's a name I'm more familiar with. testing Roger. And excuse the previously poorly formatted code (it looked ok at my end before sending but occasionally in Outlook 2007 when I copy and paste from external apps

RE: Regex help with invalid HTML

2009-11-17 Thread Mark Henderson
Peter Boughton wrote on Wed 18/11/2009 at 03:12: The only time parsing HTML with RegEx might be remotely viable is when you know what that code will be - if the HTML is uncontrolled then using RegEx is a futile effort. RegEx is for dealing with Regular text, and HTML is not a Regular

RE: Regex help with invalid HTML

2009-11-16 Thread Mark Henderson
Azadi Saryev wrote on 16 November 2009 at 17:58 you can do it with something like this: cfset line='trtd class=la href=/blah.com/atd31 622td25 623td193 645td840 642td1.9 GB' cfset cleanline = rereplace(line, 't[^]+', '|', 'all') cfoutput#listfirst(cleanline, '|')# #listlast(cleanline,

RE: Regex help with invalid HTML

2009-11-16 Thread lists
Andy matthews, you're welcome. -Original Message- From: Mark Henderson [mailto:m...@cwc.co.nz] Sent: Monday, November 16, 2009 4:29 PM To: cf-talk Subject: RE: Regex help with invalid HTML Azadi Saryev wrote on 16 November 2009 at 17:58 you can do it with something like

RE: Regex help with invalid HTML

2009-11-16 Thread lists
testing -Original Message- From: Mark Henderson [mailto:m...@cwc.co.nz] Sent: Monday, November 16, 2009 4:29 PM To: cf-talk Subject: RE: Regex help with invalid HTML Azadi Saryev wrote on 16 November 2009 at 17:58 you can do it with something like this: cfset line='trtd class=la

Regex help with invalid HTML

2009-11-15 Thread Mark Henderson
Calling all regex gurus. I've spent a little time on this so now it's time to seek advice from the professionals. Here is an example of the content I'm working with: trtd class=la href=/abc.co.nz/atd52 363td73 815td5 122 265td2 166 760td471.47 MB trtd class=la href=/xyz.co.nz/atd31 622td23

RE: Regex help with invalid HTML

2009-11-15 Thread lists
Will it always be a domain name you want to keep? And will the file size always be at the very end of the line? -Original Message- From: Mark Henderson [mailto:m...@cwc.co.nz] Sent: Sunday, November 15, 2009 8:38 PM To: cf-talk Subject: Regex help with invalid HTML Calling all regex

RE: Regex help with invalid HTML

2009-11-15 Thread Mark Henderson
lists wrote: Will it always be a domain name you want to keep? And will the file size always be at the very end of the line? Yes, and yes (confirmed all the TRs start on a new line). Regards Mark ~| Want to reach the

Re: Regex help with invalid HTML

2009-11-15 Thread Azadi Saryev
you can do it with something like this: cfset line='trtd class=la href=/blah.com/atd31 622td25 623td193 645td840 642td1.9 GB' cfset cleanline = rereplace(line, 't[^]+', '|', 'all') cfoutput#listfirst(cleanline, '|')# #listlast(cleanline, '|')#/cfoutput and if you do not want any html in final

Re: Regex Help - Can this be simplified?

2009-08-17 Thread Peter Boughton
The easiest to read solution is one line: cfset finalDescription = fiddleWithParas(form.description) / Of course, that function will then contain a nicely spaced easy-to-read piece of logic, which almost certainly wont be a horrible single line of nested replaces.

Regex Help - Can this be simplified?

2009-08-13 Thread Che Vilnonis
Is there a way using CF's Regex functions to simplfy the lines of code below into one line? Some kind of built in regex list comparison maybe? cfset finalDescription = replace(trim(form.description), br, br /, ALL) cfset finalDescription = replace(finalDescription, p/p, br /br /, ALL) cfset

RE: Regex Help - Can this be simplified?

2009-08-13 Thread Dave Phillips
of code. Dave Phillips -Original Message- From: Che Vilnonis [mailto:ch...@asitv.com] Sent: Thursday, August 13, 2009 1:14 PM To: cf-talk Subject: Regex Help - Can this be simplified? Is there a way using CF's Regex functions to simplfy the lines of code below into one line? Some kind

Re: Regex Help - Can this be simplified?

2009-08-13 Thread Charlie Griefer
Subject: Regex Help - Can this be simplified? Is there a way using CF's Regex functions to simplfy the lines of code below into one line? Some kind of built in regex list comparison maybe? cfset finalDescription = replace(trim(form.description), br, br /, ALL) cfset finalDescription = replace

RE: Regex Help - Can this be simplified?

2009-08-13 Thread Che Vilnonis
accepta a list of chars and then replace any of them when a match was found. -Original Message- From: Charlie Griefer [mailto:charlie.grie...@gmail.com] Sent: Thursday, August 13, 2009 2:29 PM To: cf-talk Subject: Re: Regex Help - Can this be simplified? less lines != simplified :) A year

RE: Regex Help - Can this be simplified?

2009-08-13 Thread Dave Phillips
: Re: Regex Help - Can this be simplified? less lines != simplified :) A year from now, which version are you going to want to come back to when it needs work? The 3 line version or the 1? I'd prefer the 3. Easier to read

Re: Regex Help - Can this be simplified?

2009-08-13 Thread Tony Bentley
rereplace(string,(p)+(/p),br,all) ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive:

Re: Regex Help - Can this be simplified?

2009-08-13 Thread Charlie Griefer
: Charlie Griefer [mailto:charlie.grie...@gmail.com] Sent: Thursday, August 13, 2009 1:29 PM To: cf-talk Subject: Re: Regex Help - Can this be simplified? less lines != simplified :) A year from now, which version are you going to want to come back to when it needs work? The 3 line version

Re: Regex Help - Can this be simplified?

2009-08-13 Thread Tony Bentley
Sorry I didn't read the post very well rereplace(form.description,(p)+(/p)+(br),br/,all) This does not replace a single p with br/br/ but I think it does the job. ~| Want to reach the ColdFusion community with something

RE: Regex Help - Can this be simplified?

2009-08-13 Thread Che Vilnonis
There ya go. :) Just found out you can use the pipe | as well. -Original Message- From: Tony Bentley [mailto:t...@tonybentley.com] Sent: Thursday, August 13, 2009 2:35 PM To: cf-talk Subject: Re: Regex Help - Can this be simplified? rereplace(string,(p)+(/p),br,all

Re: Regex Help - Can this be simplified?

2009-08-13 Thread Tony Bentley
You're better off using regex-replace(){rereplace()} over replace() for more than one condition. The pipe is a way to cheat the replace function but for future string searching or replacing functions, try regex and you can even test it online here:

RE: Regex Help - Can this be simplified?

2009-08-13 Thread Gabriel
frequently, they're rarely easy to descipher at a glance. Gabriel -Original Message- From: Tony Bentley [mailto:t...@tonybentley.com] Sent: Friday, 14 August 2009 5:59 AM To: cf-talk Subject: Re: Regex Help - Can this be simplified? You're better off using regex-replace(){rereplace

Twitter hashtag RegEx help

2009-08-10 Thread Paul Vernon
Ok, so I thought I'd cracked this and I have to some extent but not completely. The well known hashtag RegEx I see in most Twitter examples is a variant of this ##([a-z0-9\-_]+) The problem with this is that if you run it over a string that contains HTML entities, it will recognise those HTML

Re: Twitter hashtag RegEx help

2009-08-10 Thread Mahcsig
You could look for hash tags without an in front of it. something like this: (?:[^]|^)##([a-z0-9_\-]+) ~Mahcsig On Mon, Aug 10, 2009 at 10:24 AM, Paul Vernon paul.ver...@web-architect.co.uk wrote: Ok, so I thought I'd cracked this and I have to some extent but not completely. The well

RE: Twitter hashtag RegEx help

2009-08-10 Thread Paul Vernon
You could look for hash tags without an in front of it. something like this: (?:[^]|^)##([a-z0-9_\-]+) ~Mahcsig That was close, due to the needs of the code, I had to modify it a bit but you definitely put me on the right track. In the end, I arrived at this ([^]|^)##([a-z0-9_\-]+) as I

Regex help - without a look-around

2009-08-03 Thread Will Tomlinson
I'm trying to match if a pageID list doesn't end with: ,services.wpViewingHistory And has a siteList with W in it. Here's my regex:

RegEx Help

2009-07-23 Thread Duane Boudreau
I need a little quick (hopefully) regex help. I have to modify all the links on a site that do not contain onclick events Here is the regex and sample code I have: cfsavecontent variable=myContent a href=/downloads/abc.pdfClick here for File/abr/ a href=/files/xyz.xls onclick=logme('/files

Re: RegEx Help

2009-07-23 Thread Barney Boisvert
How about load jquery and do jQuery(a).click(function() { logme(jQuery(this).attr(href)); }); On Thu, Jul 23, 2009 at 2:04 PM, Duane Boudreaudu...@sandybay.com wrote: I need a little quick (hopefully) regex help. I have to modify all the links on a site that do not contain onclick events

RE: RegEx Help

2009-07-23 Thread Duane Boudreau
Message- From: Barney Boisvert [mailto:bboisv...@gmail.com] Sent: Thursday, July 23, 2009 6:14 PM To: cf-talk Subject: Re: RegEx Help How about load jquery and do jQuery(a).click(function() { logme(jQuery(this).attr(href)); }); On Thu, Jul 23, 2009 at 2:04 PM, Duane Boudreaudu

Need Regex help for finding and Hyperlinks words in String

2009-06-05 Thread Mike Francisco
Happy Friday everyone. I was hoping if anyone can help me with regex and a UDF. I have a string/paragraph which contains words beginning with a specific character. I'd like to find all those words and then assign a hyperlink URL to them. Example: If the string is: Lorem ipsum dolor sit

RE: Need Regex help for finding and Hyperlinks words in String

2009-06-05 Thread Andy Matthews
/a', 'ALL') cfdump var=#VARIABLES# Just curious...how far did you get in your own testing? andy -Original Message- From: Mike Francisco [mailto:cfmike...@gmail.com] Sent: Friday, June 05, 2009 1:46 PM To: cf-talk Subject: Need Regex help for finding and Hyperlinks words in String Happy

RE: Need Regex help for finding and Hyperlinks words in String

2009-06-05 Thread Mike Francisco
: RE: Need Regex help for finding and Hyperlinks words in String Mike... cfset VARIABLES.oldstring = 'Lorem ipsum dolor sit amet, consectetur adipisicing. Elit @commadelimited sed do eiusmod tempor incididunt ut labore. Et dolore magnaaliqua. ' cfset VARIABLES.newstring = REReplaceNoCase

RE: Need Regex help for finding and Hyperlinks words in String

2009-06-05 Thread Andy Matthews
Great. Glad to help. I def recommend you learn at least the basics of Regex. It's helpful in a wide range of applications. andy -Original Message- From: Mike Francisco [mailto:cfmike...@gmail.com] Sent: Friday, June 05, 2009 2:53 PM To: cf-talk Subject: RE: Need Regex help for finding

Regex help...

2009-05-29 Thread Tom Jones
Hello, I'm trying to use cfhttp to download and parse a directory listing from one of my sites. I can download the page but the parsing is a whole different story :-). I'm trying to use REFind to get all of the anchor/href tags but I'm coming up short. If I use the following regular

Re: Regex help...

2009-05-29 Thread Claude Schneegans
Hi, For this type of parsing, you should have a look at CF_REextract: http://customtags.internetique.com/REextract/testREextract.cfm ~| Want to reach the ColdFusion community with something they want? Let them know on the

RE: Regex help...

2009-05-29 Thread Che Vilnonis
To: cf-talk Subject: Regex help... Hello, I'm trying to use cfhttp to download and parse a directory listing from one of my sites. I can download the page but the parsing is a whole different story :-). I'm trying to use REFind to get all of the anchor/href tags but I'm coming up short. If I use

Re: Regex help...

2009-05-29 Thread Tom Chiverton
On Friday 29 May 2009, Tom Jones wrote: If I use the following regular expression in a script it works fine, I just dont know with CF, I have not used much RE in CF yet. http://txt2re.com/ -- Helping to globally grow world-class 24/7 unique partnerships as part of the IT team of the year,

Re: Regex help...

2009-05-29 Thread Peter Boughton
I'm trying to use REFind to get all of the anchor/href tags but I'm coming up short. RegEx is not necessarily the ideal tool for this - try a DOM Parser. If you've got consistent/controlled input you can use regex, and here's a Java one that will work in most situations:

Regex help

2009-01-30 Thread Dean Lawrence
Hi All, Can anyone help me with a particular regex patten? I am trying to find any email address that has at least one dot in the username portion and the entire email string is surrounded by bold tags? Thanks ~| Adobe®

Re: Regex help

2009-01-30 Thread Nathan Strutz
so like b[\w]+\.[\...@[\w]+\.[\w]{2,5}/b That's really basic, but should be easy to understand. nathan strutz [Blog and Family @ http://www.dopefly.com/] [AZCFUG Manager @ http://www.azcfug.org/] On Fri, Jan 30, 2009 at 9:08 AM, Dean Lawrence dean...@gmail.com wrote: Hi All, Can

Re: Regex help

2009-01-30 Thread Patrick Santora
Try this: cfset string = this is bfirstname.lastname...@email.com/b email address / cfset email = refindNoCase((b)(([A-Z0-9_%+-]*\.)+[a-z0-9_%+...@[a-z0-9.-]+\.[a-z]{2,4})(\/b), string, 1, true )/ cfdump var=#mid( string, email.POS[3], email.LEN[3] )# On Fri, Jan 30, 2009 at 8:08 AM, Dean

Re: Regex help

2009-01-30 Thread Patrick Santora
This pattern should account for strong as well now: cfset email = refindNoCase((b|strong)(([A-Z0-9_%+-]*\.)+[a-z0-9_%+...@[a-z0-9.-]+\.[a-z]{2,4})(\/b|\/strong), string, 1, true )/ Just amend the tag you want to wrap around the email (b|strong) and (\/b|\/strong) as shown above. Pipes are the or

Re: Regex help

2009-01-30 Thread Nathan Strutz
Pat, Few tips. If you're going to say b or strong with (b|strong), it's a few less chars to just do (b|strong). Instead of [a-zA-Z0-9_%+-], you can get by with [\w%+-], oh, and add a period to one of those in case there is more than 1 in the string, then there's no need for that extra param and

Re: Regex help

2009-01-30 Thread Patrick Santora
Thanks for the tips. Always helpful! I built this quickly as I only had a few minutes. I've worked with regex for a bit. Either way it looks as though any of these examples will work. Thanks, -Pat On Fri, Jan 30, 2009 at 3:49 PM, Nathan Strutz str...@gmail.com wrote: Pat, Few tips. If

Re: Regex help

2009-01-30 Thread Peter Boughton
Ok, firstly a slight semantics rant: Strong and Bold are NOT synonymous - just because the default styling for the Strong tag is bold does not mean that they are interchangeable. Now that's out of the way, onto the regex side of things - your pattern will match this:

Re: Regex help

2009-01-30 Thread Peter Boughton
reFindNoCase runs a fair amount slower than reFind. Have you compared it against using inline case-insensitive flag, i.e: refind( '(?i)regex' , text ) Would be interesting to know if that is any faster/slower than refindnocase.

Re: Regex help - matching invalid xhtml

2008-12-03 Thread Dominic Watson
Any reason not to be using the XHTML parsers out there on the produced output? Dominic 2008/12/3 Will Tomlinson [EMAIL PROTECTED]: 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

Re: Regex help - matching invalid xhtml

2008-12-03 Thread Dominic Watson
NVM, of course there is eh, you can auto fix them with CF right... Dominic 2008/12/3 Dominic Watson [EMAIL PROTECTED]: Any reason not to be using the XHTML parsers out there on the produced output? Dominic 2008/12/3 Will Tomlinson [EMAIL PROTECTED]: I guess it'd be cool if I were to use

RE: Regex help - matching invalid xhtml

2008-12-03 Thread Andy Matthews
/#h-4.6 It is however a good idea to put a space before the / for readability. andy -Original Message- From: Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2008 10:07 PM To: cf-talk Subject: Re: Regex help - matching invalid xhtml I guess it'd be cool if I were

Re: Regex help - matching invalid xhtml

2008-12-03 Thread Will Tomlinson
Actually, both of your examples are invalid according to the W3C which states that all attributes must be quoted: http://www.w3.org/TR/2002/REC-xhtml1-20020801/#h-4.4 The value of that variable output DOES contain quotes. I just need my regex to do what is required by my company. Well, I need

  1   2   3   4   5   6   7   >