I have a situation where there is something like this in the regex:
^b?A+b?$
So, it bcan match at the beginning of a line 0 or 1 times, but it Amust match one or more times. Again it bmay coincide at the end of the line 0 or 1 time.
Now I want to change this regular expression so that it matches beither the beginning or the end of the line, but not both.
How to do it?
source
share