I have string: text and something and something like f213 @@ -1,9 +1,11 @@ etc etc and litle more etc etc
i woul dlike to get now @@ -1,9 +1,11 @@. Numbers are not fixed and can be changed…
My regex which not working:
(@@ -)([0-9]+)(,)([0-9]+)( +)([0-9]+)(,)([0-9]+)( @@)
Can someone see error in my regex?
You need to escape your plus:
By the way, this is the best tool ever: http://www.nregex.com/nregex/default.aspx when trying to see what a regex is doing.