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 reference-link id=1 type=reference/ to a superscript as so sup1/sup, basically getting the value of the id attribute of the reference link tag and creating a

Regex question

2013-07-17 Thread Matthew Allen
I have a body of text as below: body body body bodybodybody bodybody body body reference-link id=1 type=reference/ body body body reference-link id=2 type=reference/body body body bodybody body body body body Is it possible to change the reference-link tag from a reference link tag

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 target

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: a.*?href=.*?\.pdf.*? Here's a great site: http://gskinner.com/RegExr/ On 18 May 2011 02:30, Lists li...@commadelimited.com wrote: You could actually do this with jquery quite easily

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 think

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 du...@sandybay.com wrote: Hi All, First time posting in a very long time. I'm

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!

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

RE: Regex Question

2011-04-28 Thread Jenny Gavin-Wear
- 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. ~| Order

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

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 Griefer

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

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

Re: Regex Question

2010-12-03 Thread Jason Fisher
Stetten vonner.li...@vonner.net Sent: Friday, December 03, 2010 12:36 PM To: cf-talk cf-talk@houseoffusion.com 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 you want

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
...@austin-williams.com Sent: Friday, December 03, 2010 1:03 PM To: cf-talk cf-talk@houseoffusion.com 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 so the CFC could extract

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 Interactive

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

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 rob...@austin-williams.com

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 characters

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

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 two

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 cfqueryparams but did not specify a cfsqltype. We upgraded our DB from Oracle 9i to 10g and all of the sudden we're getting Error Executing Database Query errors. Logs show A nonnumeric character was found when expecting

RE: CF regex question [SOT]

2010-05-28 Thread Andy Matthews
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 with some old code one of team mates did. He used cfqueryparams but did not specify a cfsqltype

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 li...@commadelimited.com wrote: Per the good Jason Dean at www.12robots.com: cfqueryparam(.?[^(cf_sql_type)])+? Tested against these: cfqueryparam value=foo / cfqueryparam value=foo cfqueryparam value=#foo#

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.. cfqueryparam value=anythingcfanything / doesn't match. ~| Order the Adobe Coldfusion Anthology now!

RE: Easy Regex question?

2010-03-15 Thread Che Vilnonis
Carol, I used... reReplaceNoCase(myHTML, table.*?.*?/table, , 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, table.*?/table, , all') Or Rereplace

Re: Easy Regex question?

2010-03-15 Thread Carol F
-talk Subject: RE: Easy Regex question? Rereplace(html, table.*?/table, , all') Or Rereplace(html, table[^]+/table, , 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
: 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 1:28 PM, Che Vilnonis ch...@asitv.com wrote: Scratch that... I figured it out! -Original Message

RE: Easy Regex question?

2010-03-13 Thread Bobby Hartsfield
Rereplace(html, table.*?/table, , all') Or Rereplace(html, table[^]+/table, , 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 tried it on: htmlhead/headbodytexttablewhatever

Easy Regex question?

2010-03-12 Thread Che Vilnonis
This should be easy. How do I remove all text between table/table 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

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 table/table tags from a larger

Re: Easy Regex question?

2010-03-12 Thread Carol F
' Subject: Easy Regex question? This should be easy. How do I remove all text between table/table tags from a larger string? Thanks, Che ~| Want to reach the ColdFusion community with something they want? Let them know

RE: Easy Regex question?

2010-03-12 Thread andy matthews
Should be able to do this: REMatchNoCase('table[^]+/table', 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 1:28

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

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

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

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 ColdFusion

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
://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-9]{17} Should do

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

RE: Simple regex question

2009-06-10 Thread Andy Matthews
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 Community Expert Adobe

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

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

Re: Simple regex question

2009-06-10 Thread Rick Mason
...@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: Field can be blank but if filled out has to be exactly 17

Re: Simple regex question

2009-06-10 Thread Azadi Saryev
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: 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

Re: Simple regex question

2009-06-10 Thread Azadi Saryev
...@commadelimited.comwrote: [ ]|[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

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 Rick Mason
, 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: Field can be blank but if filled out has to be exactly 17 characters which

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

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

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 all

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 Saryev Sabai

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

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( dashed

Regex question

2008-07-17 Thread Will Tomlinson
Let's say I've got a chunk of source code like so: form name=frmLogin action=index.cfm?action=tomlinson.setTestForm method=post table width=45% align=left border=0 cellpadding=5 cellspacing=1 class=subHeader tr valign=middle bgcolor=ff td width=20% align=rightUsername/td td

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

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 well

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 regular

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... img src=http://images.craigslist.org/01010001150701030720071219cd6f3ea36b5b712d 2f00d0d9.jpg I am using... cfset imageLink = REReplaceNoCase(cfhttp.fileContent, img[^]+([a-z0-9_]\.(?:jpg|jpeg|gif|png))[^]*, , ONE) But it

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... img src=

RE: Another RegEx question...

2007-12-20 Thread Che Vilnonis
PROTECTED] 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, I need to pull the first

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

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 cf-talk@houseoffusion.com Sent: Thursday, December 20, 2007 11:58 AM Subject: Re: Another RegEx question... listLast(URL,'/') ? You're just

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

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 a page

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 img tag in the RE1 expression. 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

Re: Another RegEx question...

2007-12-20 Thread s. isaac dealey
cfset imageLink = REReplaceNoCase(cfhttp.fileContent, img[^]+([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: img[^]+ and then straight into the regex for the url ... so there's no mention

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 that

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 closing

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 p tags round ul 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 ul listing without p tags round them. That is my

Re: This is a good one - another Regex question

2007-07-21 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

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 reply Claude. I know that formatting wise it's madness to have p tags round ul 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 ul listing without p tags round them. That is my dilema. I'll have a look at

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

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

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 pstrongJedi Knight? Big paragraph sometime and large chunk of text sometimes /strong/p ul lisfsdfsdfs dfsdfsdfsdf/li lisdfsddfsdf sdfsdf/li lisdfsddfsdf sdfsdf/li /ul Honestly this is

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 /p[[:space:]]ul by #chr(13)##chr(10)#ul 2º replace all /ul with /ul#chr(13)##chr(10)#/p You don't even need regexp for 2º Now, if you have UL blocs with no preceding P, or

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 Jide Aliu
Hi Claude - I tried the implementation you suggested, the second half worked fine all/ul are replaced by /ul/p but absolutely nothing happened the top half the opening pblah blah/p ulsdfsd remains the same. Am I doing something wrong? Please see the code below cfset formatText=

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/ul are replaced by /ul/p but absolutely nothing happened the top half the opening pblah blah/p ulsdfsd remains the

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 2

Re: This is a good one - another Regex question

2007-07-20 Thread Claude Schneegans
cfset formatText= rePlace(rawText, /p[[:space:]]ul, #chr(13)##chr(10)#ul,ALL) This one uses a regexp, so you should rather use REReplace() cfset formatText= REreplace(rawText, /p[[:space:]]ul, #chr(13)##chr(10)#ul,ALL) -- ___ REUSE CODE! Use custom tags;

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.

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 ul tags preceded by ptext/p, example below; pBody of text loads of it, sometimes just a one liner and it ends here/p ul liblurb of text one/li liblurb of text two/li liblurb of text three/li /ul pAnother of body text here/p ul liNew list

Re: This is a good one - another Regex question

2007-07-19 Thread Jide Aliu
Sorry just a quick correction below, the p tag must always encapsulate the next piece of ul tag just after it and closes at the end of the /ul/ptag; pBody of text loads of it, sometimes just a one liner and it ends here ul liblurb of text one/li liblurb of text two/li liblurb of

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 http://blog.stevenlevithan.com/. The dude is in love with regular expressions. Chris http://blog.stevenlevithan.com/On 7/19/07, Jide Aliu [EMAIL PROTECTED] wrote: I have a body of text, within

Re: This is a good one - another Regex question

2007-07-19 Thread Claude Schneegans
the p tag must go round the ul 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 /P is right after the end of the paragraph, its presence after the closing /UL is

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

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

RE: Yet another regex question

2007-05-16 Thread Peterson, 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 specify

Re: Yet another regex question

2007-05-16 Thread Jon Clausen
, 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 specify a controller.delimiter which should work for your dot notation for event handlers. You can

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: optionselect a make/optionoption value=Honda selectedHonda/option The length of this string might vary, but I need to get the string inside the FIRST value=get this string. I

RE: Javascript regex question...

2007-05-01 Thread Ben Nadel
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 to throw it to the list in case

RE: Javascript regex question...

2007-05-01 Thread Andy Matthews
-Original Message- From: Andy 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: optionselect a make

RE: Javascript regex question...

2007-05-01 Thread Ben Nadel
, 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 = 'optionselect a make/optionoption value=Honda selectedHonda/optionoption value=AcuraAcura/option'; re = /value=(\w+)/i; found = str.match(re); alert(found

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 you were in javascript

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 http://www.adobe.com

  1   2   3   >