Re: Regex question

2013-07-17 Thread Cameron Childress
On Wed, Jul 17, 2013 at 11:15 AM, Matthew Allen wrote: > Is it possible to change the reference-link tag from a reference link tag > to a superscript as so > 1, basically getting the value of the id attribute of the > reference link tag and creating a superscript tag with the value. I'll let

Regex question

2013-07-17 Thread Matthew Allen
I have a body of text as below: "body body body bodybodybody bodybody body body body body body body body body bodybody body body body body" Is it possible to change the reference-link tag from a reference link tag to a superscript as so 1, basically getting the value of the id attribute of

Re: RegEx Question

2011-05-20 Thread Peter Boughton
Not only can you do it with jQuery, you /should/ do it with jQuery (or equiv). Regex is not built for HTML parsing, and there are many reasons why it wont work correctly when you try. Rather than worry about numerous edge cases, use a tool designed for the job from the start. ~~~

RE: RegEx Question

2011-05-19 Thread Duane Boudreau
Thanks that's brilliant! -Original Message- From: Dominic Watson [mailto:watson.domi...@googlemail.com] Sent: Wednesday, May 18, 2011 5:42 AM To: cf-talk Subject: Re: RegEx Question Here is a very blunt regex that should match the opening tag (does not check for the lack of t

Re: RegEx Question

2011-05-18 Thread Dominic Watson
Here is a very blunt regex that should match the opening tag (does not check for the lack of target="_blank": Here's a great site: http://gskinner.com/RegExr/ On 18 May 2011 02:30, Lists wrote: > > You could actually do this with jquery quite easily should you want to do it > client side.

Re: RegEx Question

2011-05-17 Thread Lists
You could actually do this with jquery quite easily should you want to do it client side. $('a[href*=pdf]').click(function(){ window.open($(this).href); }) On May 17, 2011, at 5:35 PM, Duane Boudreau wrote: > > Hi All, > > First time posting in a very long time. > > I'm stuck on a RegEx

RegEx Question

2011-05-17 Thread Duane Boudreau
Hi All, First time posting in a very long time. I'm stuck on a RegEx problem that I can't wrap my head around. I need to have a block of html and I need to add target="_blank" to any hyperlink that has a pdf link in it. Any suggestions? Here is the match string I tried so far but I don't thin

Re: Regex Question

2011-04-28 Thread Rick Colman
would it ignore the parens and space? will try shortly. TNX! On 4/28/2011 1:17 PM, Andy Matthews wrote: > That seems like it might do the trick: > > http://regexr.com?2tl99 > >> Could be as simple as \w{3} >> >> Would that do it (searching for 3 consecutive word characters)? >> >> -- >> Charlie

Re: Regex Question

2011-04-28 Thread Andy Matthews
That seems like it might do the trick: http://regexr.com?2tl99 > Could be as simple as \w{3} > > Would that do it (searching for 3 consecutive word characters)? > > -- > Charlie Griefer > http://charlie.griefer.com > > I have failed as much as I have succeeded. But I love my life. I love >

RE: Regex Question

2011-04-28 Thread Jenny Gavin-Wear
Perhaps using list functions? -Original Message- From: Rick Colman [mailto:rcol...@cox.net] Sent: 28 April 2011 18:10 To: cf-talk Subject: Regex Question input looks like: (A XXX)(B YYY)(C ZZZ) I need to pull out: XXXYYYZZZ ... Can somebody help? TNX. Rick

Re: Regex Question

2011-04-28 Thread Charlie Griefer
Could be as simple as \w{3} Would that do it (searching for 3 consecutive word characters)? -- Charlie Griefer http://charlie.griefer.com I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my kind of success. On Thursday, April 28, 2011 at 10:10 AM,

Regex Question

2011-04-28 Thread Rick Colman
input looks like: (A XXX)(B YYY)(C ZZZ) I need to pull out: XXXYYYZZZ ... Can somebody help? TNX. Rick. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=h

RE: Regex Question

2010-12-03 Thread Jason Fisher
--- From: "Robert Harrison" Sent: Friday, December 03, 2010 1:03 PM To: "cf-talk" Subject: RE: Regex Question > listGetAt(cgi.path_info, 2, "/") Great. That will work for what I want. I want to be able to pass the cgi.path_info to a CFC and pass a digit s

RE: Regex Question

2010-12-03 Thread Robert Harrison
> listGetAt(cgi.path_info, 2, "/") Great. That will work for what I want. I want to be able to pass the cgi.path_info to a CFC and pass a digit so the CFC could extract the part of the string I want to do a query... I'm using long URLs to pass variables more and more these days, as opposed to

Re: Regex Question

2010-12-03 Thread Jason Fisher
From: "Carl Von Stetten" Sent: Friday, December 03, 2010 12:36 PM To: "cf-talk" Subject: Re: Regex Question Robert, How about treating CGI.path_info as a list, using "/" as your delimiter. Then you can use the various list* functions in CF to parse it however yo

Re: Regex Question

2010-12-03 Thread Carl Von Stetten
Robert, How about treating CGI.path_info as a list, using "/" as your delimiter. Then you can use the various list* functions in CF to parse it however you want. Carl On 12/3/2010 9:26 AM, Robert Harrison wrote: > Regex is not my strong suit, but someone may know this off the top of their

Regex Question

2010-12-03 Thread Robert Harrison
Regex is not my strong suit, but someone may know this off the top of their head. If I have a long url like: http://www.mysite.com/item1/option2/part3/section4 I can use cgi.path_info to get the /item1/option2/part3/section4 part of the string. Now is there an easy regex that co

Re: Quick Regex Question

2010-10-29 Thread CDCaveman
unsubscribe In a message dated 10/29/2010 10:41:43 A.M. Eastern Daylight Time, rob...@austin-williams.com writes: I have the regex statement - ReReplace(new_dir,"\W","","all") That removes all non-alphanumeric characters from a sting. If I want to remove all non-alphanumeric characte

Re: Quick Regex Question

2010-10-29 Thread Nathan Strutz
Robert, Actually, the underscore is counted as an alphanumeric in regular expressions. Try just replacing \W with nothing and see what you get. nathan strutz [http://www.dopefly.com/] [http://hi.im/nathanstrutz] On Fri, Oct 29, 2010 at 7:41 AM, Robert Harrison wrote: > > I have the regex sta

NEVER MIND: Quick Regex Question

2010-10-29 Thread Robert Harrison
- ReReplace(new_dir,"\W","","all") is any alphanumeric character and the _ Never Mind. Thanks 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

Quick Regex Question

2010-10-29 Thread Robert Harrison
I have the regex statement - ReReplace(new_dir,"\W","","all") That removes all non-alphanumeric characters from a sting. If I want to remove all non-alphanumeric characters except the underscore, is that:ReReplace(new_dir,"\W/_","","all") or ? Thanks Robert B. Harrison Director of Intera

Re: Regex question

2010-08-19 Thread Ian Skinner
On 8/19/2010 8:32 AM, Ian Skinner wrote: > I need to turn some relative links into absolute links in a string. > > I have this rereplace() working well to do that. > > rereplace(links,'(href=")([^"]*")','\1http://www.cdpr.ca.gov\2','ALL') Thank you Ian, adding the forward slash[/] character in

Regex question

2010-08-19 Thread Ian Skinner
I need to turn some relative links into absolute links in a string. I have this rereplace() working well to do that. rereplace(links,'(href=")([^"]*")','\1http://www.cdpr.ca.gov\2','ALL') But there is one link in the string that is already absolute going to a different domain. Is there an e

Re: CF regex question [SOT]

2010-05-28 Thread Will Tomlinson
>Seems to work beautifully! Thanks! > As long as you don't have any variables/values with "cf" in them. hehehe.. doesn't match. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Mi

Re: RE: CF regex question [SOT]

2010-05-28 Thread Greg Morphis
Seems to work beautifully! Thanks! On May 28, 2010 3:05 PM, "Andy Matthews" wrote: Per the good Jason Dean at www.12robots.com: Tested against these: And the first three match. andy -Original Message- From: Greg Morphis [mailto:gmorp...@gmail.com] Sent: Friday, May 28,.

RE: CF regex question [SOT]

2010-05-28 Thread Andy Matthews
Per the good Jason Dean at www.12robots.com: Tested against these: And the first three match. andy -Original Message- From: Greg Morphis [mailto:gmorp...@gmail.com] Sent: Friday, May 28, 2010 1:39 PM To: cf-talk Subject: CF regex question [SOT] I just ran into a problem

CF regex question [SOT]

2010-05-28 Thread Greg Morphis
I just ran into a problem with some old code one of team mates did. He used no cfsqltype and according to the docs it's default is CF_SQL_CHAR. So I need to go through the 1321 http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.

Re: Easy Regex question?

2010-03-15 Thread Carol F
gt; Sent: Saturday, March 13, 2010 10:01 AM > To: cf-talk > Subject: RE: Easy Regex question? > > > Rereplace(html, ".*?", "", "all') > > Or > > Rereplace(html, "[^>]+", "", "all') > > > -----Original Message

RE: Easy Regex question?

2010-03-15 Thread Che Vilnonis
Carol, I used... reReplaceNoCase(myHTML, ".*?", "", "ALL")> -Original Message- From: Bobby Hartsfield [mailto:bo...@acoderslife.com] Sent: Saturday, March 13, 2010 10:01 AM To: cf-talk Subject: RE: Easy Regex question? Rereplace(html, &quo

RE: Easy Regex question?

2010-03-13 Thread Bobby Hartsfield
Rereplace(html, ".*?", "", "all') Or Rereplace(html, "[^>]+", "", "all') -Original Message- From: Carol F [mailto:cfcn...@gmail.com] Sent: Saturday, March 13, 2010 1:59 AM To: cf-talk Subject: Re: Easy Regex question? I

Re: Easy Regex question?

2010-03-13 Thread Carol F
Message- > > From: Che Vilnonis [mailto:ch...@asitv.com] > > Sent: Friday, March 12, 2010 4:25 PM > > To: 'cf-talk@houseoffusion.com' > > Subject: Easy Regex question? > > > > This should be easy. > > How do I remove all text between tags from a l

RE: Easy Regex question?

2010-03-12 Thread andy matthews
Should be able to do this: REMatchNoCase('[^>]+', myString) -Original Message- From: Carol F [mailto:cfcn...@gmail.com] Sent: Friday, March 12, 2010 6:52 PM To: cf-talk Subject: Re: Easy Regex question? do you mind sharing the solution please? On Fri, Mar 12, 2010 at

Re: Easy Regex question?

2010-03-12 Thread Carol F
useoffusion.com' > Subject: Easy Regex question? > > This should be easy. > How do I remove all text between tags from a larger string? > > Thanks, Che > > > > ~| Want to reach the ColdFusion commu

RE: Easy Regex question?

2010-03-12 Thread Che Vilnonis
Scratch that... I figured it out! -Original Message- From: Che Vilnonis [mailto:ch...@asitv.com] Sent: Friday, March 12, 2010 4:25 PM To: 'cf-talk@houseoffusion.com' Subject: Easy Regex question? This should be easy. How do I remove all text between tags from a larger strin

Easy Regex question?

2010-03-12 Thread Che Vilnonis
This should be easy. How do I remove all text between tags from a larger string? Thanks, Che ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: ht

Re: Simple regex question

2009-06-10 Thread Peter Boughton
In CF regex, \w is same as [a-zA-Z0-9_] Most other regex flavours are the same as this. Some regex flavours also include accented characters (áéí...) in their \w matches. ~| Want to reach the ColdFusion community with someth

Re: Simple regex question

2009-06-10 Thread Rick Mason
z0-9]{17} > >> > >> Should do it... > >> > >> That basically allows for a space, or for 17 alphanumeric characters. > >> > >> -Original Message- > >> From: Rick Mason [mailto:rhma...@gmail.com] > >> Sent: Wednesday, June

Re: Simple regex question

2009-06-10 Thread Ben Nadel
\w should handle both alpha and numeric data. I am not sure why mine was failing. -Ben -- Ben Nadel Adobe Community Expert Adobe Certified Advanced ColdFusion Developer Manager New York ColdFusion User Group http://www.bennadel.com Need ColdFusion Help? http://www.bennadel.com/Ask-Ben ~~

Re: Simple regex question

2009-06-10 Thread Azadi Saryev
k > > On Wed, Jun 10, 2009 at 10:52 AM, Andy Matthews > wrote: > >> [ ]|[a-z0-9]{17} >> >> Should do it... >> >> That basically allows for a space, or for 17 alphanumeric characters. >> >> -Original Message- >> From: Rick Mason [ma

Re: Simple regex question

2009-06-10 Thread Azadi Saryev
>> From: Rick Mason [mailto:rhma...@gmail.com] >> Sent: Wednesday, June 10, 2009 9:50 AM >> To: cf-talk >> Subject: Simple regex question >> >> >> I'm in need of some regex help. I am working with a cfinput and I need a >> pattern for regex vali

Re: Simple regex question

2009-06-10 Thread Rick Mason
Rick Mason [mailto:rhma...@gmail.com] > Sent: Wednesday, June 10, 2009 9:50 AM > To: cf-talk > Subject: Simple regex question > > > I'm in need of some regex help. I am working with a cfinput and I need a > pattern for regex validation that does the following: > >

RE: Simple regex question

2009-06-10 Thread Adrian Lynch
"There's a ISVIN function on CFLib and I had originally proposed to my boss that I rewrite it in javascript but he didn't want that level of functionality." Just do it, don't ask the boss! :OD ~| Want to reach the ColdFusion co

RE: Simple regex question

2009-06-10 Thread Dawson, Michael
>Think of it as a unique serial number for your car with vehicle information baked into the number. Show me the CARFAX! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion ma

RE: Simple regex question

2009-06-10 Thread Andy Matthews
hicle from the VIN. andy -Original Message- From: Ben Nadel [mailto:b...@bennadel.com] Sent: Wednesday, June 10, 2009 9:59 AM To: cf-talk Subject: Re: Simple regex question I have to plead ignorance on this one - I don't know what a VIN number is. -- Ben Nadel Adobe Communi

Re: Simple regex question

2009-06-10 Thread Rick Mason
Thanks you Andy and Ben for your quick response. A VIN number is a vehicle identification number which is on your car's registration as well as being on the driver side dash. Think of it as a unique serial number for your car with vehicle information baked into the number. Andy the only problem

Re: Simple regex question

2009-06-10 Thread Ben Nadel
I have to plead ignorance on this one - I don't know what a VIN number is. -- Ben Nadel Adobe Community Expert Adobe Certified Advanced ColdFusion Developer Manager New York ColdFusion User Group http://www.bennadel.com Need ColdFusion Help? http://www.bennadel.com/Ask-Ben ~~~

RE: Simple regex question

2009-06-10 Thread Andy Matthews
t the subject. http://www.phpfreaks.com/forums/index.php?topic=217075.0 It all just depends on how accurate you need to be. andy -Original Message- From: Andy Matthews [mailto:li...@commadelimited.com] Sent: Wednesday, June 10, 2009 9:52 AM To: cf-talk Subject: RE: Simple regex question [ ]|[a-z0-

Re: Simple regex question

2009-06-10 Thread Ben Nadel
Ha ha, most agreed :) -- Ben Nadel Adobe Community Expert Adobe Certified Advanced ColdFusion Developer Manager New York ColdFusion User Group http://www.bennadel.com Need ColdFusion Help? http://www.bennadel.com/Ask-Ben ~|

RE: Simple regex question

2009-06-10 Thread Andy Matthews
Great minds Ben...great minds. -Original Message- From: Ben Nadel [mailto:b...@bennadel.com] Sent: Wednesday, June 10, 2009 9:51 AM To: cf-talk Subject: Re: Simple regex question Try this: "^$|^[\w]{17}$" -Ben -- Ben Nadel Adobe Community Expert Adobe Certified Advanced

RE: Simple regex question

2009-06-10 Thread Andy Matthews
[ ]|[a-z0-9]{17} Should do it... That basically allows for a space, or for 17 alphanumeric characters. -Original Message- From: Rick Mason [mailto:rhma...@gmail.com] Sent: Wednesday, June 10, 2009 9:50 AM To: cf-talk Subject: Simple regex question I'm in need of some regex hel

Re: Simple regex question

2009-06-10 Thread Ben Nadel
Try this: "^$|^[\w]{17}$" -Ben -- Ben Nadel Adobe Community Expert Adobe Certified Advanced ColdFusion Developer Manager New York ColdFusion User Group http://www.bennadel.com Need ColdFusion Help? http://www.bennadel.com/Ask-Ben ~

Simple regex question

2009-06-10 Thread Rick Mason
I'm in need of some regex help. I am working with a cfinput and I need a pattern for regex validation that does the following: Field can be blank but if filled out has to be exactly 17 characters which are a combination of letters and numbers (VIN number) Know this is simple but Google seems to

Re: Simple regex question...

2008-10-14 Thread Peter Boughton
>I need a RegEx to strip all of the characters that appear after >the *last* dash in a string (the last dash needs to be stripped as well). To match the last dash and everything after it, you want: -[^-]*$ So to use that to strip of that segment of the string, just do: dashless = rereplace( dashe

RE: Simple regex question...

2008-10-14 Thread Che Vilnonis
Adrian, Azadi... Thanks, that worked. -Original Message- From: Azadi Saryev [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2008 10:35 AM To: cf-talk Subject: Re: Simple regex question... how about just left(string, len(string)-len(listlast(string, "-"))-1) ? Azadi Sa

Re: Simple regex question...

2008-10-14 Thread Azadi Saryev
how about just left(string, len(string)-len(listlast(string, "-"))-1) ? Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Che Vilnonis wrote: > Morning all. I need a RegEx to strip all of the characters that appear after > the *last* dash in a string (the last dash needs to be stripped as we

RE: Simple regex question...

2008-10-14 Thread Adrian Lynch
ListLast(theString, "-") Adrian Building a database of ColdFusion errors at http://cferror.org/ -Original Message- From: Che Vilnonis [mailto:[EMAIL PROTECTED] Sent: 14 October 2008 15:27 To: cf-talk Subject: Simple regex question... Morning all. I need a RegEx to strip

Simple regex question...

2008-10-14 Thread Che Vilnonis
Morning all. I need a RegEx to strip all of the characters that appear after the *last* dash in a string (the last dash needs to be stripped as well). How would I do something like that? Sample data is below. Thanks! 2995,2818-5 33054--2 3320-4 7789-4(1) 3641-45-1 Che Vilnonis Application Develop

Re: Regex question

2008-07-17 Thread Sonny Savage
If I understand correctly, this should do what you want: ^\s+ On Thu, Jul 17, 2008 at 2:56 PM, Will Tomlinson <[EMAIL PROTECTED]> wrote: > >I, for one, am having trouble understanding what you're trying to > >accomplish. I could probably help you if I understood the purpose/goal of > >your regul

Re: Regex question

2008-07-17 Thread Will Tomlinson
>I, for one, am having trouble understanding what you're trying to >accomplish. I could probably help you if I understood the purpose/goal of >your regular expression. > Sonny, thanks for the help! I could't make that regex work for my particular problem. Probably because I didn't explain it w

Re: Regex question

2008-07-17 Thread Sonny Savage
I, for one, am having trouble understanding what you're trying to accomplish. I could probably help you if I understood the purpose/goal of your regular expression. Assuming that you have this content loaded into a variable, you're not reading a line at a time from a file, and you're wanting to f

Regex question

2008-07-17 Thread Will Tomlinson
Let's say I've got a chunk of source code like so: Username etc... So it can have almost any kind of character in it. Now, let's say I want to check the beginning for whatever, in this case, I want a match if it has a newline or carriage return at the beginning. (?i)

Re: Another RegEx question...

2007-12-20 Thread s. isaac dealey
> "]+([a-z0-9_]\.(?:jpg|jpeg|gif|png))[^>]*>", "", "ONE")> In addition to Ben's comment, it doesn't look like you're finding the beginning of the src attribute, see: ]+ and then straight into the regex for the url ... so there's no mention of src=" ... there's also no allowance for the protocol

Re: Another RegEx question...

2007-12-20 Thread Claude Schneegans
>>Claude, that brings back the javascript script tag Ah ok, then you have to include the >I just want the RegEx though. I wrote this tag because it is sometimes much easier to find what's between two very simple expressions than to describe what you want in only one more complicated expression,

RE: Another RegEx question...

2007-12-20 Thread Che Vilnonis
Claude, that brings back the javascript script tag. Neat custom tag, I just want the RegEx though. -Original Message- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Thursday, December 20, 2007 3:36 PM To: CF-Talk Subject: Re: Another RegEx question... >>I am cfhttp-ing

Re: Another RegEx question...

2007-12-20 Thread Claude Schneegans
>>I am cfhttp-ing a page and searching for the first image tag. This is a job for CF_REextract : http://www.contentbox.com/claude/customtags/REextract/testREextract.cfm You can even test it on line : 1) set INPUTMODE = to http 2) go to http://www.contentbox.com/claude/customtags/REextract/testi

Re: Another RegEx question...

2007-12-20 Thread Josh Nathanson
I think you need ReFindNoCase, otherwise it will return empty string. -- Josh - Original Message - From: "Todd" <[EMAIL PROTECTED]> To: "CF-Talk" Sent: Thursday, December 20, 2007 11:58 AM Subject: Re: Another RegEx question... > listLast(URL,&#x

Re: Another RegEx question...

2007-12-20 Thread Ben Doom
The first thing I see is that you are only allowing for single-character names. You don't have a + or * (+ would be better) after [a-z0-9_]. There may be more, but that's what I see at first glance. --Ben Doom Che Vilnonis wrote: > In a sea of data, I need to pull the first image tag. It look

RE: Another RegEx question...

2007-12-20 Thread Che Vilnonis
] Sent: Thursday, December 20, 2007 2:58 PM To: CF-Talk Subject: Re: Another RegEx question... listLast(URL,'/') ? You're just complicating something simple with Regex here in this case. On Dec 20, 2007 2:55 PM, Che Vilnonis <[EMAIL PROTECTED]> wrote: > In a sea of data,

Re: Another RegEx question...

2007-12-20 Thread Todd
listLast(URL,'/') ? You're just complicating something simple with Regex here in this case. On Dec 20, 2007 2:55 PM, Che Vilnonis <[EMAIL PROTECTED]> wrote: > In a sea of data, I need to pull the first image tag. It looks like > this... > src=" > http://images.craigslist.org/0101000115070103072

Another RegEx question...

2007-12-20 Thread Che Vilnonis
In a sea of data, I need to pull the first image tag. It looks like this... http://images.craigslist.org/01010001150701030720071219cd6f3ea36b5b712d 2f00d0d9.jpg"> I am using... ]+([a-z0-9_]\.(?:jpg|jpeg|gif|png))[^>]*>", "", "ONE")> But it does not work. Can anyone help? Thanks, Che ~~~

Re: This is a good one - another Regex question

2007-07-24 Thread Jide Aliu
>Jide, why do you want to do this again?? What precisely are you gaining by >moving >the closing paragraph tag outside the UL? Hi Mark, I've been away for a couple of days, I've just seen your post. The long and short of it is that we have a client that has some sort of data feed process tha

Re: This is a good one - another Regex question

2007-07-23 Thread Mark Henderson
Jide Aliu wrote: > Thanks for your reply Claude. I know that formatting wise it's madness to > have tags round tag, but the problem we are having is that we are > suppplying xml data to a vendor for some reason their system won't accept > listing without tags round them. That is my dilema. I

Re: This is a good one - another Regex question

2007-07-23 Thread Mark Henderson
Claude Schneegans wrote: > > IMO, the format you are trying to modify is by far more correct than the > result you are trying to attempt. Agreed. And the question, although once posed, still beckons - Jide, why do you want to do this again?? What precisely are you gaining by moving the closin

Re: This is a good one - another Regex question

2007-07-21 Thread Claude Schneegans
>>Not sure what it can't do as far as text manipulation goes Not really sure about something regexp can't do. The problem is generally to find the right one ;-) -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (

Re: This is a good one - another Regex question

2007-07-20 Thread Jide Aliu
Thanks for your help Claude, it has really open my eyes to Regex. Not sure what it can't do as far as text manipulation goes :-) ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7

Re: This is a good one - another Regex question

2007-07-20 Thread Claude Schneegans
>>You need an asterisk after [[:space:]] Also. ;-) -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please send any spam to this address: [EMAIL PROTECTED]) Thanks. ~~~

Re: This is a good one - another Regex question

2007-07-20 Thread Claude Schneegans
>>[[:space:]]", "#chr(13)##chr(10)#","ALL")> This one uses a regexp, so you should rather use REReplace() [[:space:]]", "#chr(13)##chr(10)#","ALL")> -- ___ REUSE CODE! Use custom tags; See http://www.contentbox.com/claude/customtags/tagstore.cfm (Please s

Re: This is a good one - another Regex question

2007-07-20 Thread Jide Aliu
>You need an asterisk after [[:space:]]. > Fantastic dude! That did the trick. Thanks, I'm off now to drop everything off into an xml document. ~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex

Re: This is a good one - another Regex question

2007-07-20 Thread Ben Doom
You need an asterisk after [[:space:]]. Try that on for size. --Ben Doom Jide Aliu wrote: > Hi Claude - I tried the implementation you suggested, the second half worked > fine all are replaced by but absolutely nothing happened the > top half the opening blah blah sdfsd remains the same. > >

Re: This is a good one - another Regex question

2007-07-20 Thread Jide Aliu
Hi Claude - I tried the implementation you suggested, the second half worked fine all are replaced by but absolutely nothing happened the top half the opening blah blah sdfsd remains the same. Am I doing something wrong? Please see the code below [[:space:]]", "#chr(13)##chr(10)#","ALL")> ",

Re: This is a good one - another Regex question

2007-07-20 Thread Jide Aliu
Thanks Claude - I'll try this and let you know if it works. ~| Create Web Applications With ColdFusion MX7 & Flex 2. Build powerful, scalable RIAs. Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS Archive:

Re: This is a good one - another Regex question

2007-07-20 Thread Claude Schneegans
If the whole file is like this, henestly you don't really need CF_REextract for this. 1º replace all occurences of [[:space:]] by #chr(13)##chr(10)# 2º replace all with #chr(13)##chr(10)# You don't even need regexp for 2º Now, if you have UL blocs with no preceding , or multi-level s, then it'

Re: This is a good one - another Regex question

2007-07-20 Thread Jide Aliu
>I cannot be 100% sure myself if I don't have a sample of the file and >the work to do actually Jedi Knight? Big paragraph sometime and large chunk of text sometimes sfsdfsdfs dfsdfsdfsdf sdfsddfsdf sdfsdf sdfsddfsdf sdfsdf Honestly this is typical data all that is needed is to s

Re: This is a good one - another Regex question

2007-07-20 Thread Claude Schneegans
>>Incidentally Claude, how would CF_Extract work in solving the problem. I cannot be 100% sure myself if I don't have a sample of the file and the work to do actually, but apparently your problem it a parsing issue, and I've designed this tag to help to solve parsing problems. The basic princi

Re: This is a good one - another Regex question

2007-07-20 Thread Jide Aliu
Incidentally Claude, how would CF_Extract work in solving the problem. If I'm 100% sure that it'll work, I'll get it now! Thanks again ~| CF 8 – Scorpio beta now available, easily build great internet experiences – Try it n

Re: This is a good one - another Regex question

2007-07-20 Thread Jide Aliu
Thanks for your reply Claude. I know that formatting wise it's madness to have tags round tag, but the problem we are having is that we are suppplying xml data to a vendor for some reason their system won't accept listing without tags round them. That is my dilema. I'll have a look at CF_Ex

Re: This is a good one - another Regex question

2007-07-19 Thread Claude Schneegans
>> the tag must go round the tags like so Sorry, but I don't really see the point here: The P tag is supposed to be applied to a paragraph. The UL and LI break that paragraph anyway, so that, unless the closing is right after the end of the paragraph, its presence after the closing is not on

Re: This is a good one - another Regex question

2007-07-19 Thread Christopher Jordan
You know who you ought to ask about regex stuff is my man Steven Levithan over at Flagrant Badassery . The dude is in love with regular expressions. Chris On 7/19/07, Jide Aliu < [EMAIL PROTECTED]> wrote: > > I have a body of text,

Re: This is a good one - another Regex question

2007-07-19 Thread Jide Aliu
Sorry just a quick correction below, the tag must always encapsulate the next piece of tag just after it and closes at the end of the tag; Body of text loads of it, sometimes just a one liner and it ends here blurb of text one blurb of text two blurb of text three Another

This is a good one - another Regex question

2007-07-19 Thread Jide Aliu
I have a body of text, within that text are random tags preceded by text, example below; Body of text loads of it, sometimes just a one liner and it ends here blurb of text one blurb of text two blurb of text three Another of body text here New list 1 New list 2 What I want to be a

Re: Yet another regex question

2007-05-16 Thread Jon Clausen
add another layer of > complexity on top of MG:U, but I may have to take a dive into it =) > > Thanks! > > Chris > > -Original Message- > From: Jon Clausen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 16, 2007 2:52 PM > To: CF-Talk > Subject:

RE: Yet another regex question

2007-05-16 Thread Peterson, Chris
Chris -Original Message- From: Jon Clausen [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 16, 2007 2:52 PM To: CF-Talk Subject: Re: Yet another regex question Chris, Check out Coldcourse (http://coldcourse.riaforge.com) It has the IsapiRewrite4 .ini file in there and allows you to spec

Re: Yet another regex question

2007-05-16 Thread Jon Clausen
Chris, Check out Coldcourse (http://coldcourse.riaforge.com) It has the IsapiRewrite4 .ini file in there and allows you to specify a controller.delimiter which should work for your dot notation for event handlers. You can also specify courses manually which will allow you to make somet

Yet another regex question

2007-05-16 Thread Peterson, Chris
I am trying to write a regex for IsapiRewrite4. I would like any url that is directly to the root (ie www.site.com) or to ( www.site.com/index.cfm ) with 3 required paramaters after it, and additional paramaters possibly. So: www.site.com/user/user/list/ would change to www.site.com/index.cfm?e

RE: Javascript regex question...

2007-05-01 Thread Ben Nadel
Subject: RE: Javascript regex question... Yeah... The "Javascript regex question" wasn't that obvious. Sorry. ;) ~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 h

RE: Javascript regex question...

2007-05-01 Thread Andy Matthews
Yeah... The "Javascript regex question" wasn't that obvious. Sorry. ;) -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 01, 2007 3:08 PM To: CF-Talk Subject: RE: Javascript regex question... Oh whoops. Didn't realize yo

RE: Javascript regex question...

2007-05-01 Thread Ben Nadel
ay 01, 2007 3:57 PM To: CF-Talk Subject: RE: Javascript regex question... Found it. In case anyone's interested. This is what I came up with: str = 'select a makeHondaAcura'; re = /value="(\w+)"/i; found = str.match(re); alert(found): returns value="Honda&qu

RE: Javascript regex question...

2007-05-01 Thread Andy Matthews
y Matthews [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 01, 2007 2:38 PM To: CF-Talk Subject: SOT: Javascript regex question... I'm working on this myself, but wanted to throw it to the list in case someone knew it right off. I have a string: select a makeHonda The length of this string

RE: Javascript regex question...

2007-05-01 Thread Ben Nadel
Fusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: Andy Matthews [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 01, 2007 3:38 PM To: CF-Talk Subject: SOT: Javascript regex question... I'm working on this myself, but wanted t

SOT: Javascript regex question...

2007-05-01 Thread Andy Matthews
I'm working on this myself, but wanted to throw it to the list in case someone knew it right off. I have a string: select a makeHonda The length of this string might vary, but I need to get the string inside the FIRST value="get this string". I know the starting char by doing this: str.indexO

  1   2   3   >