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 validation.

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 th

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: http://www.amazon.com/Adobe-Coldfusion-Anthology/d

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 num

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 ter

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 Pow

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 wrote: > > Nathan, the problem is that within the feed itself,

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 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 wrote: > > Good morning. Occasionally when parsing a RSS feed, I get RSS data I cannot > parse. Click for screenshot below (text highlighted

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? http://www.asitv.com/image

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? http://www.asitv.com/images/

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. > w

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 th

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: index.cfm?somevar=wooho

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 < rob...@

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 B

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 was

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 tho

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 eng

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 evi

RE: Regex Help

2010-07-27 Thread Andy Matthews
fter category/ and pass it to index.cfm as verb=category&term=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

RE: Regex Help

2010-07-27 Thread Andy Matthews
to:mgr...@modus.bz] Sent: 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&

RE: Regex Help

2010-07-27 Thread Robert Harrison
ustin-williams.com/unplugged -Original 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 Int

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

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
t; Great advertising can't be either/or. It must be &. > > Plug in to our blog: A&W 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-

RE: Regex Help

2010-07-27 Thread Robert Harrison
can't be either/or.  It must be &. Plug in to our blog: A&W 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 yo

Re: Regex Help

2010-07-27 Thread Michael Grant
1 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

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-t

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 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 Charlie Griefer
troublemaker :D On Mon, Jul 26, 2010 at 12:02 PM, Andy Matthews wrote: > > 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

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 Robert Harrison
t must be &. Plug in to our blog: A&W 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, '-+', '-

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! http://www.amazon.com/Adobe-Coldfusion-Anthology-

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): >

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")

RE: RegEx help

2010-06-08 Thread Bobby Hartsfield
age- From: Jason 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: #mid(testString, test.pos[2], test.len[2])# From: "Deb

RE: RegEx help

2010-06-08 Thread Debbie Morris
rom: Jason 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: #mid(testString, test.pos[2], test.len[2])# From: "Debbie Morris

RE: RegEx help

2010-06-08 Thread Jason Fisher
Debbie, Where 'testString' is your content, try this: #mid(testString, test.pos[2], test.len[2])# From: "Debbie Morris" Sent: Tuesday, June 08, 2010 10:24 AM To: "cf-talk" Subject: RE: RegEx help Thanks for the help,

Re: RegEx help

2010-06-08 Thread Kris Jones
Rather, that would be, if you don't want the label of the field: #mid(thestring,arFound["pos"][2],arFound["len"][2])# Cheers, Kris On Tue, Jun 8, 2010 at 11:43 AM, Kris Jones wrote: > How about something like this: > > refindnocase("Age:([^\r\n|\r|\n]*)[\r\n|\r|\n]",thestring,1,true) /> > #mi

Re: RegEx help

2010-06-08 Thread Kris Jones
How about something like this: #mid(thestring,arFound["pos"][1],arFound["len"][1])# Cheers, Kris ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag

Re: RegEx help

2010-06-08 Thread Michael Grant
nd 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 h

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 thi

Re: RegEx help

2010-06-08 Thread Michael Grant
.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. > Bobby Hartsfield > http://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 th

RE: RegEx help

2010-06-08 Thread Bobby Hartsfield
-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, it looks like th

RE: RegEx help

2010-06-08 Thread Debbie Morris
...@wanax.com] Sent: 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. #mid(testString, test.pos[2], test.len[2])# From: "Andy Ma

RE: RegEx help

2010-06-07 Thread Jason Fisher
Assuming that those are tabs between the elements, the following will expand on Andy's suggestion. #mid(testString, test.pos[2], test.len[2])# From: "Andy Matthews" Sent: Monday, June 07, 2010 3:32 PM To: "cf-talk" Subjec

RE: RegEx help

2010-06-07 Thread Andy Matthews
From: 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 ano

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 from

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 lan

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 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 moder

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: > > ]+>

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 l

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: > > ]+>', '|', 'all')> > #listfirst(cleanline, '|')# #listlast(cleanline, '|')# > > and if you do not want any html in final result (not even tag), then > use: > ]+>', '|', 'all')> > Thanks Azadi. That'

Re: Regex help with invalid HTML

2009-11-15 Thread Azadi Saryev
you can do it with something like this: ]+>', '|', 'all')> #listfirst(cleanline, '|')# #listlast(cleanline, '|')# and if you do not want any html in final result (not even tag), then use: ]+>', '|', 'all')> Azadi Saryev On 16/11/2009 10:37, Mark Henderson wrote: > Calling all regex gurus. I

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 Cold

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

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: abc.co.nz52 36373 8155 122 2652 166 760471.47 MB xyz.co.nz31 62223 443193 645840 6421.8 GB blah.com31 62225 623193 645840 6421.9 GB

Re: Regex Help - Can this be simplified?

2009-08-17 Thread Peter Boughton
The easiest to read solution is one line: 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. ~| Want to reach t

RE: Regex Help - Can this be simplified?

2009-08-13 Thread Gabriel
ntly, 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(){rerepl

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: http://www.cftopper.com/contentfiles/tools/re

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,"

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,"()+()+()","","all") This does not replace a single with but I think it does the job. ~| Want to reach the ColdFusion community with something they want?

Re: Regex Help - Can this be simplified?

2009-08-13 Thread Charlie Griefer
e provider of the alternate method was just trying to help. > > Dave Phillips > > -Original Message- > From: 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 simplifie

Re: Regex Help - Can this be simplified?

2009-08-13 Thread Tony Bentley
rereplace(string,"()+()","","all") ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/message

RE: Regex Help - Can this be simplified?

2009-08-13 Thread Dave Phillips
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 or the 1? I'd

RE: Regex Help - Can this be simplified?

2009-08-13 Thread Che Vilnonis
could 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

Re: Regex Help - Can this be simplified?

2009-08-13 Thread Charlie Griefer
; >","","all"),"","","all") > > > Again, this is not regex, but it is a much more simplified (and faster I > believe) way of doing the same thing with 1 line of code. > > Dave Phillips > -Original Message- >

RE: Regex Help - Can this be simplified?

2009-08-13 Thread Dave Phillips
with 1 line 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 b

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? ", "", "ALL")> ", "", "ALL")> ", "", "ALL")> Thanks, CV ~| Want to reach the ColdF

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_\

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. >

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

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: pageIDs="[0-9a-zA-Z.,]+,*(s[^e]{1}|se[^r]{1}|ser[^v]{1}|serv[^i]{1}|servi[^c]{1}|servic[^e]{1}|service[^s]{1}|services[^\.]{1}|services\.[^w]{1}|services\.w[

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 B

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 Boudreau wrote: > > I need a little quick (hopefully) regex help. > > I have to modify all the links on a site that do not

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: Click here for File Click here for File ReReplaceNoCase(myContent, "()(.*?)()", "\1\2"" onclick=&

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 fi

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

2009-06-05 Thread Mike Francisco
To: cf-talk > Subject: RE: Need Regex help for finding and Hyperlinks words in String > > > Mike... > > > > '@([[:alnum:]]+)', '@\1', 'ALL')> > > > > Just curious...how far did you get in your own testing? > > > a

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

2009-06-05 Thread Andy Matthews
Mike... @\1', 'ALL')> 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

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 ame

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: ]+?\shref\s*+=\s

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 Che Vilnonis
Tom, you could try this... http://www.somedomain.com"; method="GET" result="theData"> ]*[^/]?)>", trim(theData.fileContent))> -Original Message- From: Tom Jones [mailto:tjo...@acworld.com] Sent: Friday, May 29, 2009 11:03 AM To: cf-talk Subjec

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 House

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 expressio

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

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: some.th...@where.ever Whe

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 wrote: > > Pat, > > Few tips. > If you're going t

Re: Regex help

2009-01-30 Thread Nathan Strutz
Pat, Few tips. If you're going to say or with (|), 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 possible dot

Re: Regex help

2009-01-30 Thread Patrick Santora
This pattern should account for as well now: |)(([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 "(|)" and "(<\/b>|<\/strong>)" as shown above. Pipes are the "or" operators. -Pat On Fri, Jan 30

Re: Regex help

2009-01-30 Thread Patrick Santora
Try this: )(([A-Z0-9_%+-]*\.)+[a-z0-9_%+...@[a-z0-9.-]+\.[a-z]{2,4})(<\/b>)", string, 1, true )/> On Fri, Jan 30, 2009 at 8:08 AM, Dean Lawrence wrote: > > 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

Re: Regex help

2009-01-30 Thread Nathan Strutz
so like [\w]+\.[\...@[\w]+\.[\w]{2,5} 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 wrote: > > Hi All, > > Can anyone help me with a

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® Cold

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 tha

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

RE: Regex help - matching invalid xhtml

2008-12-03 Thread Andy Matthews
02/REC-xhtml1-20020801/#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 i

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

  1   2   3   4   5   6   7   >