LPS-30514

Updated to use a regular expression instead of multi-line replacetoken.