I am trying to replace all instances of a substring from the first character following ":" until the end of a substring "user" with case-ignored using the (?i)
So, an example would be:
Input
u:sdneUSER|r:endsUser(&g:againuser)
Replace All :
sdneUSER -> root
endsUser -> root
againuser -> root
Expected Output:
u:root|r:root(&g:root)
Reference :
Ignore case https://stackoverflow.com/a/5055036