I have a paragraph which contains i++ and ++i:
para = "This is what i++ is do ++i and in i I dim ++ +"
and I want to find all occurrences of i++ and ++i. As I am a total beginner at this so this is what I write at regex101.com
[i+]
This works fine but as you can see it also gives me all the I i + ++
everywhere in the string so I added this \b[i+]\b
but it doesn't select the + sign attached with i++ . Also, it selects the single i in the string. Which means it is not treating i++ or ++i as a single string.
How can I change my regex to select i++ or ++i in the string