Help with regex
Posted: Sat Aug 20, 2011 10:43 am
Hi All,
I'm not that good in regex so I was hoping someone could help me out with my following problem. Suppose I have the following strings:
test.test1.
test2.test3.test3.
What I want to achieve is a regex that replaces the first few strings up until the before last ., so that I will have test1. and test3. (including the dots at the end) to work with.
Thanks for any help on this.
I'm not that good in regex so I was hoping someone could help me out with my following problem. Suppose I have the following strings:
test.test1.
test2.test3.test3.
What I want to achieve is a regex that replaces the first few strings up until the before last ., so that I will have test1. and test3. (including the dots at the end) to work with.
Thanks for any help on this.