in reply to why is regex not matching final character?

Regular expressions are by default greedy. They will match the longest part of the string that matches; not the shortest.
  • Comment on Re: why is regex not matching final character?