Re: RegEx Troubles

2003-12-19 Thread John W. Krahn
Jeremy Mann wrote: > > Given this in $_ > Most popular title searches: HREF="/title/tt0244365/">"Enterprise" (2001)" > > why would this regex not put digits in $1 ? > > $data2 =~ /popular title searches:<\/p> HREF=\"\/title\/tt(\d*)\/\">/ If the text is in $_ then that should be: $_ =~ m|popul

Re: RegEx Troubles

2003-12-19 Thread James Edward Gray II
On Dec 19, 2003, at 12:47 PM, Jeremy Mann wrote: Given this in $_ Most popular title searches:"Enterprise" (2001)" why would this regex not put digits in $1 ? $data2 =~ /popular title searches:<\/p>/ Because the regex targets the $data2 variable instead of $_, possibly. I don't seen anything wr

Re: RegEx Troubles

2003-12-19 Thread Ricardo SIGNES
* Jeremy Mann <[EMAIL PROTECTED]> [2003-12-19T13:47:26] > Given this in $_ > Most popular title searches: HREF="/title/tt0244365/">"Enterprise" (2001)" > > why would this regex not put digits in $1 ? > > $data2 =~ /popular title searches:<\/p> HREF=\"\/title\/tt(\d*)\/\">/ This code: $da

RE: RegEx Troubles

2003-12-19 Thread Wagner, David --- Senior Programmer Analyst --- WGO
>Given this in $_ >Most popular title searches:"Enterprise" >(2001)" > >why would this regex not put digits in $1 ? > >$data2 =~ /popular title searches:<\/p>/ Then "$datas =~ "should be removed and just use /popular title searches:<\/p>/ You are going vs $data2 when you state the valu

RE: RegEx Troubles

2003-12-19 Thread Wolf Blaum
>Given this in $_ >Most popular title searches:HREF="/title/tt0244365/">"Enterprise" (2001)" > >why would this regex not put digits in $1 ? > >$data2 =~ /popular title searches:<\/p>HREF=\"\/title\/tt(\d*)\/\">/ > Hi, Snip--- $data2='Most popular title searches:"Enterprise" (2001)"'; $data2 =~

RegEx Troubles

2003-12-19 Thread Jeremy Mann
Given this in $_ Most popular title searches:"Enterprise" (2001)" why would this regex not put digits in $1 ? $data2 =~ /popular title searches:<\/p>/ Thanks in advance... -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]