RegularExp for a file path

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • michaelscript
    New Member
    • Nov 2007
    • 9

    RegularExp for a file path

    Hi
    I am looking for a RegularExp for a file path ;
    Example : /com/bytes/file/Hello.txt
    The path should endwith .txt ,i.e. it is a txt of type.

    Thanks
  • hsriat
    Recognized Expert Top Contributor
    • Jan 2008
    • 1653

    #2
    Try this..
    Code:
    /^\/com\/bytes\/file\/\w\.txt$/

    Comment

    Working...