All,
I have a string - 591[\s-~]*G-Y[\s-~]*6. I would like to replace only the dash(-) between G and Y. The below substitute replaces even the 'Y' that succeeds after the dash. I try adding A-Z after the negation symbol(^) and it didn't work. Pls let me know what neds to be done.