I've been trying to do the following : Given a char like "i", find and replace the second of every pair of "i" (without overlapping).
"I am so irritated with regex. Seriously" -> "I am so rritated wth regex. Seriously".
I almost found a solution using positive lookbehind, but it's overlapping :(
Can anyone help me?
My best was this (I think) -> "(?<=i).*?(i)"
EDIT : My description is wrong. I am supposed to replace the SECOND item of a pair, so the result should've been: "I am so irrtated with regex. Serously"