in reply to Re: /g option not making s// find all matches
in thread /g option not making s// find all matches

/g doesn't try to match several times from the start of the string, but from the position last match.
Thank you! This is the kernel of wisdom I was overlooking. Thank you both for the various working solutions.
  • Comment on Re^2: /g option not making s// find all matches