Created by: forresthopkinsa
Made a few changes to the Great Ape-Snake War replacement:
- Added "The" to the replacement: "The Great Ape-Snake War" (this makes more sense in almost any context)
- However, it won't double "the" if there already is one; "The Great Ape-Snake War" will still be replaced with "The Great Ape-Snake War"
- Made this particular replacement case-insensitive because there are too many feasible combinations of case for these words
- Added allowance for "Great Ape-Snake War Movement" (before it could only match "Great Ape-Snake War" or "Great Ape-Snake War"
- Added allowance for abbreviating "Street" to "St." (or "St")
- For this to work, I had to replace the word boundary at the end (
\b
) with a negative lookahead ((?!\w)
), or else it wouldn't be able to match the period in "St."
- For this to work, I had to replace the word boundary at the end (