in reply to Re^4: Using pos() inside regexp (fixed)
in thread Using pos() inside regexp

You are my hero :)
Yes, i've tried my solution, and extra new line at the end is not a big problem.
But \n in the middle of the initial string is a possible situation, so thanks a large for you attention!
  • Comment on Re^5: Using pos() inside regexp (fixed)