Can you define the problem more clearly?

It looks like you just want to replace a leading "9", "001" or "+1" with 
"1"?  In that case, you just match ^(9|001|[+]1) and replace it with 1

If that's not what you want, then what are the exact rules for how the 
input needs to be changed?

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/fb3b39dd-e8aa-47c0-9fb6-1162d4f12612o%40googlegroups.com.

Reply via email to