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

Thread: perl code question

  1. #1
    Join Date
    Feb 2011
    Posts
    2

    perl code question

    Hi,

    I have below code :

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

    if (
    defined($1)) { 
    print 
    "$1\n"
    } else { 
    print 
    "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

This is a CodeGuru survey question.


Featured


HTML5 Development Center