in reply to Re^4: Making regex /g match continuously
in thread Making regex /g match continuously

Well, you can check whether pos matches length.
  • Comment on Re^5: Making regex /g match continuously