I need a regex to replace all matching characters except the first one squared in a string.
For instance:
To match with 'A' and replace with 'B'
To match with '' and replace with 'X'
- '[space] [space] [space] A [space] [space] [space]' should be replaced by '[space] XXA [space] XX'
Ammar source
share