in reply to pattern matching help

Do literate Programming: the solution is a function of the problem. Know the problem, know the solution.

m{(?x) # i want to match [A-Z] # windos drive letter : #colon (?: #cluster \\ # backslash [^\\]+ # directory- or filename )+ #one or more }#end of pattern
--
http://fruiture.de

Replies are listed 'Best First'.
Re: Re: pattern matching help
by Anonymous Monk on Dec 16, 2002 at 14:23 UTC
    thanks but this still doesn't pass the correct filename test on my cgi ;-(
      thanks but this still doesn't pass the correct filename test on my cgi ;-(
      Are you sure you don't have / instead of \?

      Copious use of debugging prints/warns would help identify whethre you have the match strng you expect and the rege you want

      Dingus


      Enter any 47-digit prime number to continue.