RegEx question, hopefully easy

Summer <crazysummer2004-/[email protected]>
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <[email protected]>
Hello All,

I have a regular expression template question if I may.

Lets say I have this string -

CC: Apparel : Red Shoes : Prints : Madden

*there might be a case where there is no space before or after the ":".

Why I want is to extract "Madden", basically all non-space chars after the last ":" or if anchoring from the back, all chars up to ":" (not including the : or space).

All help is appreciated

Thanks,
E

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.