Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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 perusing the Monastery: (8)
As of 2015-03-30 03:10 GMT
Find Nodes?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:

    Results (633 votes), past polls