Jump to content

  • Log In with Google      Sign In   
  • Create Account


prh99

Member Since 22 Nov 2000
Offline Last Active Aug 18 2014 06:21 PM

Topics I've Started

Perl 5 regular expressions[Answered]

29 March 2006 - 08:38 PM

I am in the process of learning Perl. Is there anyway to store a regular expression in a variable. For example, the expression /\d{3}-\d{3}-\d{4}, is there anyway to store it in a variable called say phone_number and use the variable name in place of the actual expression in pattern matching etc. I've searched Google without much luck. Of course it is possible I've over looked something. Any help would be much appreciated. Thanks. [Edited by - prh99 on March 31, 2006 1:22:08 AM]

PARTNERS