perl code question
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 1 of 1

Thread: perl code question

  1. #1
    Join Date
    Feb 2011

    perl code question


    I have below code :

    PHP Code:
    my($abc) = "fred<hello>3hello"
    $abc =~ /^[^\d]{2,4}<([^>]+)>\d?\1$/; 

    if (
    defined($1)) { 
    } else { 
    "not found\n"

    What is the code doing ?? what function of the regular expression

    PHP Code:
    $abc =~ /^[^\d]{2,4}<([^>]+)>\d?\1$/; 
    Please advice what it do ??
    Last edited by PeejAvery; February 10th, 2011 at 07:07 AM. Reason: Fixed code tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)