in java i need to replace a number with a word only if it is not preceeded by the "+". Example:
- match1
- match+1
Should become:
matchone
match+1 (no modify)
I tried with
>>>name = name.replaceAll("([^+])1", "one");
matcone //required "matchone"
But it is not working. Any suggestions?
Thank you