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

Answer: How do I use a regex to identify a / character at the beginning of a string?

by szekszardi (Initiate)
on May 10, 2001 at 16:11 UTC ( #79372=categorized answer: print w/replies, xml ) Need Help??

Q&A > regular expressions > How do I use a regex to identify a / character at the beginning of a string? - Answer contributed by szekszardi

if ($string =~ /^\//) { ... }

  • Comment on Answer: How do I use a regex to identify a / character at the beginning of a string?
  • Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2017-08-18 14:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (303 votes). Check out past polls.

    Notices?