Re: RegEx help please ...

2008-08-11 Thread Rob Dixon
Mr. Shawn H. Corey wrote: > On Mon, 2008-08-11 at 23:30 +0100, Rob Dixon wrote: >> Mr. Shawn H. Corey wrote: >>> On Mon, 2008-08-11 at 14:02 -0700, Saya wrote: I have the following issue: my $s = "/metadata-files/test-desc.txt,/metadata-files/birthday.txt,/ web-media/images

Re: RegEx help please ...

2008-08-11 Thread Mr. Shawn H. Corey
On Mon, 2008-08-11 at 23:30 +0100, Rob Dixon wrote: > Mr. Shawn H. Corey wrote: > > On Mon, 2008-08-11 at 14:02 -0700, Saya wrote: > >> > >> I have the following issue: > >> > >> my $s = "/metadata-files/test-desc.txt,/metadata-files/birthday.txt,/ > >> web-media/images/bday-after-help.jpg,javascri

Re: RegEx help please ...

2008-08-11 Thread Rob Dixon
Mr. Shawn H. Corey wrote: > On Mon, 2008-08-11 at 14:02 -0700, Saya wrote: >> >> I have the following issue: >> >> my $s = "/metadata-files/test-desc.txt,/metadata-files/birthday.txt,/ >> web-media/images/bday-after-help.jpg,javascript:popUp('/pop-ups/ >> birthday/main.html','bday-pics',785,460);"

Re: RegEx help please ...

2008-08-11 Thread Rob Dixon
Saya wrote: > > I have the following issue: > > my $s = "/metadata-files/test-desc.txt,/metadata-files/birthday.txt,/ > web-media/images/bday-after-help.jpg,javascript:popUp('/pop-ups/ > birthday/main.html','bday-pics',785,460);" > > Now I want $s to be like: "/metadata-files/test-desc.txt,/meta

Re: RegEx help please ...

2008-08-11 Thread Mr. Shawn H. Corey
On Mon, 2008-08-11 at 14:02 -0700, Saya wrote: > Hi, > > I have the following issue: > > my $s = "/metadata-files/test-desc.txt,/metadata-files/birthday.txt,/ > web-media/images/bday-after-help.jpg,javascript:popUp('/pop-ups/ > birthday/main.html','bday-pics',785,460);" > > Now I want $s to be l

Re: Regex Help Please!?

2002-06-27 Thread John W. Krahn
Jess Balint wrote: > > Hello all. I am trying to 'code' an address into a certain format. The > format is as follows: > > first 4 digits of street # > first 4 street name > first 2 of address line 2 > first 3 of zip code > > The data is a pipe delimited file with the following format: > > cons

RE: Regex Help Please!?

2002-06-27 Thread David . Wagner
You will need to escape the | as \| otherwise won't do what you think. I checked to make sure. Wags ;) -Original Message- From: Tom Stewart [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 27, 2002 11:18 To: Balint, Jess; [EMAIL PROTECTED] Subject: RE: Regex Help Please!?

RE: Regex Help Please!?

2002-06-27 Thread Tom Stewart
Why not drop it in an array and split it and work with it from there? I am not sure what your final goal is but this way you can work with each field independently and check if your address_line_2 is blank. open(FILE,$file) || die "could not open $file"; while() { @data = split(/|/,$_); }

RE: Regex help Please...

2002-01-31 Thread Nikola Janceski
: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Regex help Please... --- [EMAIL PROTECTED] wrote: > I know this is not a good RegEx. Can I see some criticism and fine-tuning of > this RegEx that I came up with? > > Objective: To parse the path to drive, directory and file name.

Re: Regex help Please...

2002-01-31 Thread Curtis Poe
--- [EMAIL PROTECTED] wrote: > I know this is not a good RegEx. Can I see some criticism and fine-tuning of > this RegEx that I came up with? > > Objective: To parse the path to drive, directory and file name. > > Here is what I came up with. > > # > $fullpath =

Re: Regex help Please...

2002-01-31 Thread John
Couldn't it be: m#^([^\\/]+)(.*)([^\\/]+)$# ) At Thursday, 31 January 2002, [EMAIL PROTECTED] wrote: >I know this is not a good RegEx. Can I see some criticism and fine- tuning of >this RegEx that I came up with? > >Objective: To parse the path to drive, directory and file name. > >Here is wha