matching the last space hyphen chars on a line1999-01-28 01:54:38How do I write a regular expression that will match only the last " -.*" on a
line so that in the line foo -bar -one only -one would be matched and in foo
-bar only -bar would be matched.
What I want to do is eliminate the last string of characters that start with
space hypen.
Thanks,
geoff
|
|
||||||||||||||||