Reputation: 11
All of the tutorials related to regular expressions I have found very difficult to understand, so thank you in advanced for helping me here on this stupidly simple question.
I'm trying to change a string of the form 0n to the form n so "02" => "2" and "06" => "6"
I know the search regex must be 0[0-9], but I don't know what the replacement regex must be.
Upvotes: 0
Views: 86
Reputation: 38173
Search Regex:
*(0)[0-9]+*
Replace $1, which would be group 1, a.k.a the 0
with ""
Upvotes: 1