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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -