Re: How to match last part of fullpath in apt-file with a perl reg-exp?

2013-02-25 Thread Mark Filipak
I think 'm[^/]*$' will match (parse) all end-parts that begin with 'm'. I think '.*/m[^/]*$' will match (find) all full-paths that have an end-part that begins with 'm' (or either of: 'm' or 'M' if 'i' flag is used). I addressed parsing, not finding. In javascript, regExp=/.*\/m[^\/]*$/i; would

How to match last part of fullpath in apt-file with a perl reg-exp?

2013-02-24 Thread Πρεκατές Αλέξανδρος
How can i match the last part of a full pathnname? eg: apt-file -x search '^m.*' matches full paths with their topmost dirname started with 'm' . How can i match the last part or the full path to start with m for example ? aprekates http://librebytes.gr -- To UNSUBSCRIBE, email to

Re: How to match last part of fullpath in apt-file with a perl reg-exp?

2013-02-24 Thread Mark Filipak
For end of the fullpath, search for '[^\/]*$' For end of the fullpath that begins with 'm', search for 'm[^\/]*$' Caveats: I don't know perl I don't use apt-file I don't use linux. (I lurk the Debian list because I'm considering trying Debian.) My knowledge is javascript. The patterns above

Re: How to match last part of fullpath in apt-file with a perl reg-exp?

2013-02-24 Thread Hugo Vanwoerkom
Mark Filipak wrote: For end of the fullpath, search for '[^\/]*$' For end of the fullpath that begins with 'm', search for 'm[^\/]*$' Caveats: I don't know perl I don't use apt-file I don't use linux. (I lurk the Debian list because I'm considering trying Debian.) My knowledge is

Re: How to match last part of fullpath in apt-file with a perl reg-exp?

2013-02-24 Thread Mark Filipak
Thanks for the encouragement, Hugo, but I'm not real keen on freeware. Open source is great, but free generally means not good and not supported - and a user forum is not support. My experience has been with Firefox and Thunderbird. Okay, here's my plan: Linux - Mainly for WWW browsing email.

Re: How to match last part of fullpath in apt-file with a perl reg-exp?

2013-02-24 Thread Πρεκατές Αλέξανδρος
For end of the fullpath, search for '[^\/]*$' For end of the fullpath that begins with 'm', search for 'm[^\/]*$' 'm[^\/]*$' (why \ needs quoting? , i think is not special character in perl reg exprs) 'm[^/]*$' it will also match /bla/mbla/bla . But based on your hint i think solution is

Re: How to match last part of fullpath in apt-file with a perl reg-exp?

2013-02-24 Thread Πρεκατές Αλέξανδρος
a small correction of mine. i wanted to match not only last part but beggining of last part . so your solution is ok and thanks. Based on it with a small addition i can match the beggining of the last part of full path. So: 'm[^\/]*$' (why \ needs quoting? , i think is not special character