Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

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 rifling through the Monastery: (16)
As of 2015-05-27 19:02 GMT
Find Nodes?
    Voting Booth?

    In my home, the TV remote control is ...

    Results (544 votes), past polls