Replace a list of RegexFindReplaces in a single pass

Replacing in multiple passes, especially if each different
RegexFindReplaces come from different sources (e.g. users), can lead
to some confusing and likely dangerous behavior. Instead, replace in a
single pass by unioning patterns together and re-exec'ing the patterns
to see which one matched.

Change-Id: If218c9e47b3aca8ff665f1da844279aba3cbcc35
2 files changed
tree: 06a4d224ec15322f97c0b4226a1ac6a29ff81526
  1. .gitignore
  2. .settings/
  3. COPYING
  4. GoogleFormat.xml
  5. pom.xml
  6. src/