regex help needed

2006-09-27 Thread Gerald Wheeler
I am looking for: ab1in line1 and looking for: ab2 in line 2 actually ab1 and ab2 immediately follow the last "/" (there are numerous "/" on the line (w/o quotes)) These are not working. can some explain what these say and what they should say (syntax) to return the results I'm looking f

Regex help needed

2013-01-08 Thread punit jain
Hi , I have a file as below : - { test = ("test123"); test = ("test123","abc"); test = ("test123","abc","xyz"); } { test1 = ("passfile"); test1 = ("passfile","pasfile1"); test1 = ("passfile","pasfile1","user"); } and so on The requirement is to have the file parsing so that final output is

Re: regex help needed

2006-09-27 Thread Owen
On Wed, 27 Sep 2006 13:11:17 -0600 "Gerald Wheeler" <[EMAIL PROTECTED]> wrote: > I am looking for: ab1in line1 > and looking for: ab2 in line 2 > > actually ab1 and ab2 immediately follow the last "/" (there are > numerous "/" on the line (w/o quotes)) > > These are not working. can som

Re: regex help needed

2006-09-28 Thread Jay Savage
On 9/27/06, Owen <[EMAIL PROTECTED]> wrote: On Wed, 27 Sep 2006 13:11:17 -0600 "Gerald Wheeler" <[EMAIL PROTECTED]> wrote: > I am looking for: ab1in line1 > and looking for: ab2 in line 2 > > actually ab1 and ab2 immediately follow the last "/" (there are > numerous "/" on the line (w/o

Re: Regex help needed

2013-01-08 Thread Jim Gibson
On Jan 8, 2013, at 4:28 AM, punit jain wrote: > Hi , > > I have a file as below : - > > { > test = ("test123"); > test = ("test123","abc"); > test = ("test123","abc","xyz"); > } > { > test1 = ("passfile"); > test1 = ("passfile","pasfile1"); > test1 = ("passfile","pasfile1","user"); > } > > and

Re: Regex help needed

2013-01-08 Thread timothy adigun
Hi punit jain, Please check my comments below. On Tue, Jan 8, 2013 at 1:28 PM, punit jain wrote: > Hi , > > I have a file as below : - > > { > test = ("test123"); > test = ("test123","abc"); > test = ("test123","abc","xyz"); > } > { > test1 = ("passfile"); > test1 = ("passfile","pasfile1"); > t

Re: Regex help needed

2013-01-09 Thread *Shaji Kalidasan*
quot;,"jack"); [/output]   best, Shaji --- Your talent is God's gift to you. What you do with it is your gift back to God. --- _

Re: Regex help needed

2013-01-09 Thread Dr.Ruud
On 2013-01-08 13:28, punit jain wrote: { test = ("test123"); test = ("test123","abc"); test = ("test123","abc","xyz"); } { test1 = ("passfile"); test1 = ("passfile","pasfile1"); test1 = ("passfile","pasfile1","user"); } and so on The requirement is to have the file parsing so that final o

again a regex help needed

2002-12-15 Thread Marco Centemeri
Hello All, I'd like to know if a file name is like namefile.ext (only one dot in the name) or namefile.xxx.z.ext (more than one dot in the name). I tried with regex: $file1='doctobepublish.new.pdf'; if ( $file1 =~ /\.{2,}/ ) { print "KO filename not properly formatted"; } else

RE: again a regex help needed

2002-12-15 Thread Aman Thind
rs Mailing List Subject: again a regex help needed Hello All, I'd like to know if a file name is like namefile.ext (only one dot in the name) or namefile.xxx.z.ext (more than one dot in the name). I tried with regex: $file1='doctobepublish.new.pdf'; if ( $file1 =~ /\.{2,}/

Re: again a regex help needed

2002-12-16 Thread John W. Krahn
Marco Centemeri wrote: > > Hello All, Hello, > I'd like to know if a file name is like namefile.ext (only one dot in the name) > or namefile.xxx.z.ext (more than one dot in the name). > I tried with regex: > > $file1='doctobepublish.new.pdf'; > > if ( $file1 =~ /\.{2,}/ ) { print "KO filen

Re: again a regex help needed

2002-12-22 Thread R. Joseph Newton
Hi, Maybe try: if ($file =~/\..*\./) { ... } I just checked it. It works. Joseph Marco Centemeri wrote: > Hello All, > I'd like to know if a file name is like namefile.ext (only one dot in the name) > or namefile.xxx.z.ext (more than one dot in the name). > I tried with regex: > > $fil