Hi All,
I have a string as follows..
something-somenubmer-somethingelse_some
I wanted to use "replaceall" to remove untill second hyphen (including hyphen). Out put should be as below...
"somethingelse_some"
since I have bunch of strings, I'm not getting, how I can do with regular expression.
Repalce string
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
replace after hyphen
It looks like this one worked for me
some-some-some-somthing
It finds "some-some-some-" and I replace with null.
But I want now is it should find "-some-some-somthing" and I need to replace that with null.
Any one have an idea how i can do that.
But I need other one like if I have string like^([^-].*)-
some-some-some-somthing
It finds "some-some-some-" and I replace with null.
But I want now is it should find "-some-some-somthing" and I need to replace that with null.
Any one have an idea how i can do that.