It is necessary to replace all the encountered points except for such cases:
рис. г. табл. I do this:
#([^\sрис.\s][^\sг.\s][^\sтабл.\s][.])#u As a result, they are not replaced except for the necessary combinations of ri. that abl
And so on.
How to make [^ \ sris. \ S] cover exactly the combinations of characters in fig.
not ri. is
The \ w + modifier does not seem to help or I don’t know where to put it.