Re: Regular Expression help

2007-03-02 Thread Andy_Bach
$temp='196818OVA_Chlre2_kg.scaffold_4000234YEE1\'conservedmembraneproteinSequence :196818OVA_Chlre2_kg.scaffold_4000234YEE1\'conservedmembraneprotein'; #$name = $1; $temp = ~s/'//g; print $temp; > its gives me: 4294967295 i dont know what this is... I misspoke, slightly:

Re: Regular Expression help

2007-03-02 Thread amit hetawal
A Sorry about that i got it.. It was a wrong way i was using the =~ s. thing.. My bad On 3/2/07, Kevin Roland Viel <[EMAIL PROTECTED]> wrote: > On Fri, 2 Mar 2007, amit hetawal wrote: > > > Hello all, > > > > I have a string which comes from a database entry which looks like: > > > >

Re: Regular Expression help

2007-03-02 Thread Andy_Bach
$temp='196818OVA_Chlre2_kg.scaffold_4000234YEE1\'conservedmembraneproteinSequence :196818OVA_Chlre2_kg.scaffold_4000234YEE1\'conservedmembraneprotein'; #$name = $1; $temp = ~s/'//g; print $temp; its gives me: 4294967295 i dont know what this is... the space is giving you an

RE: Regular Expression help

2007-03-02 Thread JavierMoreno
hello, I tried this also, my actual string looks like: $temp='196818OVA_Chlre2_kg.scaffold_4000234YEE1\'conservedmembraneprotei nSequence :196818OVA_Chlre2_kg.scaffold_4000234YEE1\'conservedmembraneprotein'; #$name = $1; $temp = ~s/'//g; print $temp; its gives me: 42949672

Re: Regular Expression help

2007-03-02 Thread Andy_Bach
> I am trying to write a simple regex for it but its not working for me. $temp = ~s/^'$//g; Well, you're heart is in the right place but ... ;-> The 'anchors' here: carret "^" meaning "beginning of string" and the "$" meaning "end of string", are limiting your match to match a string w/ only a

Re: Regular Expression help

2007-03-02 Thread Kevin Roland Viel
On Fri, 2 Mar 2007, amit hetawal wrote: > Hello all, > > I have a string which comes from a database entry which looks like: > > $temp = "X''"; > now i want to remove all the single qoutes from this string ( ' ) so > as to make it looks like: > > "X" > > I am trying to writ

Re: Regular Expression help

2007-03-02 Thread amit hetawal
hello, I tried this also, my actual string looks like: $temp='196818OVA_Chlre2_kg.scaffold_4000234YEE1\'conservedmembraneproteinSequence :196818OVA_Chlre2_kg.scaffold_4000234YEE1\'conservedmembraneprotein'; #$name = $1; $temp = ~s/'//g; print $temp; its gives me: 429496729

Re: Regular Expression help

2007-03-02 Thread Deane . Rothenmaier
>$temp = ~s/^'$//g; Remove the '^' and '$' anchors. what your expression is expecting to work on is a string that consists solely of a single-quote. Try $temp =~ s/'//g; Deane Rothenmaier Systems Architect Walgreens Corp. 847-914-5150 "On two occasions I have been asked [by members of Parlia

Regular Expression help

2007-03-02 Thread amit hetawal
Hello all, I have a string which comes from a database entry which looks like: $temp = "X''"; now i want to remove all the single qoutes from this string ( ' ) so as to make it looks like: "X" I am trying to write a simple regex for it but its not working for me. $temp

RE: More regular expression help...

2002-06-10 Thread Joseph Youngquist
TED] [mailto:[EMAIL PROTECTED]]On Behalf Of Walter Usyk Sent: Monday, June 10, 2002 11:54 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: More regular expression help... I have the following two possible string formats: $str1 = "/vobs/spifftest/.@@/HDX.LU/lineups/.@@/HDX.LU/hdx.lu@@

Re: Regular Expression help....

2001-09-18 Thread Matthew O. Persico
Jeremy Wadsack wrote: > > Daniel Lehman ([EMAIL PROTECTED]): > > > Hello All, > > > I am having some issues with a snippet of code from within my script. The code >follows. What i am trying to do is basically is this. I have a file that contains >about 40 lines similar to this: > > mln TCS

Re: Regular Expression help....

2001-09-18 Thread Jeremy Wadsack
Daniel Lehman ([EMAIL PROTECTED]): > Hello All, > I am having some issues with a snippet of code from within my script. The code >follows. What i am trying to do is basically is this. I have a file that contains >about 40 lines similar to this: > mln TCS4-733-051901 > The first part(mln) b

Re: regular expression help please

2001-06-28 Thread Jenda Krynicky
> (2) but at the same time, there are a number of lines containing data > that I want to delete the whole line for (example - any line that has > xwy or abc, I do not want to write out to the new file.) > > I put the values in an array, hoping to use the regular expression > match on > a single

RE: regular expression help please

2001-06-27 Thread Arthur Cohen
: : I put the values in an array, hoping to use the regular : expression match on : a single item in the array, but it's not working. It works : when I do them : one at a time, but that would be a waste. : @words = qq{abc xwy}; : : foreach $word(@words) : :

regular expression help please

2001-06-27 Thread Sharon Di Spirito
I have a file, with lines such as: |abc|john|smith|*0*7778745|[EMAIL PROTECTED] |def|jane|bubbley|*0*345645|[EMAIL PROTECTED] |xwyzeightyeight|harold|buffer|*0*|[EMAIL PROTECTED] |the|one|andonly|*0*7438745|[EMAIL PROTECTED] There are two things I am trying to do with data from a file. (1) I wan