I want to make sure that the substring in which I match has only one possible punctuation fragment and as many spaces as necessary. This is inside the much longer REGEX, currently the following exists:
[\ p {P}, \ s]
but this will fit all punctuation and spaces so that it accepts:
the line before ,,,, ..... the line after when what I want it to match is any number of spaces between the line before and after the line, with only one punctuation point - note that punctuation can be at the beginning lines at the end or using many spaces before or after.
source share