Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: How do i get string between

by kiruthika.bkite (Scribe)
on May 04, 2010 at 12:54 UTC ( #838300=note: print w/ replies, xml ) Need Help??

in reply to How do i get string between

your code,

this is a test /test123? $item1 =~ m/ \/(.*) \? /;
As per your regular expression ,searched pattern requires space before and after '?'.

But here searched pattern is not having space before and after '?'.
So use the regular expression,
$item1 =~/\/(.*)\?/;
$1 will have test123.

Comment on Re: How do i get string between
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://838300]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2015-10-07 05:40 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (170 votes), past polls