Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 chilling in the Monastery: (4)
As of 2017-12-18 06:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (467 votes). Check out past polls.

    Notices?