in reply to Regex question - capturing next char

why not split the string into words, then do your checks?
  • Comment on Re: Regex question - capturing next char