Regex Get path name from full path -
can give me few examples of getting path full path..e.g
c:\aaa\bbb\c cc\file.exe
to
c:\aaa\bbb\c cc\
more 1 example method cool must regex only, language called ici has similar regex perl , other such language why need few examples, atleast 1 work better other , can modify it.
thanks!
here basic example of inverse regex (finds filename). use substring before start path.
[\w]*[.][\w]*$
and path only:
.*[\\]
Comments
Post a Comment