I am sorry to bother you but I need your help concerning a grep request which don't really work.
I am trying to find all the terms "eg", "e.g", "eg.", "e.g.", "e.g., " and "e.g.," and replace them by "e.g.,"
Here is the Grep request : (e)(.)?(g)(.)?(,)*\s*
which is replaced by : e.g.,~s
But my problem is that the request also finds terms containing in words like "regex" and I don't understand why … where is my mistake ? I tried to use the terms \< and \> to delimitate the beginning and the end of the word but if I do this, the comma and dots aren't selected …
Thank you in advance for your help.
I would try:
Grep find: \<e\.*g\.*,*\s
I thought the brackets were needed to recognize correctly the letters ... I tried once with the backslash-angle-bracket alone but I guess my request was wrong
Now it works fine ! Thank you very much