Hello, there are two such regulars: '~\*\*([^*]+)\*\*~' and ~""(.+?)""~ , but they do not catch the text if there are tabs in it, transfers and so on. How can I fix this? spasibo

  • The first regular should work out normally. And so, use the s modifier. - Visman

1 answer 1

The first expression works correctly: https://regex101.com/r/ewCJD2/1

The second will work correctly if you add the modifier s ( ~""(.+?)""~s ) to the end: https://regex101.com/r/G8ESRY/1