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 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
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
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
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.
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
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
7 matches
Mail list logo