Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (1)
As of 2016-08-31 01:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (426 votes). Check out past polls.