pattern match

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dillipkumar
    New Member
    • Mar 2008
    • 41

    #1

    pattern match

    Can anybody say what is the pattern matching for the expression


    afkmsim1:tkmdss am:/st/dist/msamagt/bin/............... ..../tk_eb.exe.pl

    It ends with .pl extension

    ...... means it may be indefine number of path

    Thanks
    Dillip
  • nithinpes
    Recognized Expert Contributor
    • Dec 2007
    • 410

    #2
    Originally posted by dillipkumar
    Can anybody say what is the pattern matching for the expression


    afkmsim1:tkmdss am:/st/dist/msamagt/bin/............... ..../tk_eb.exe.pl

    It ends with .pl extension

    ...... means it may be indefine number of path

    Thanks
    Dillip
    You may just match for .pl at end of string.
    Code:
    if(/\.pl$/)  {

    Comment

    Working...