jreEscape UDF - Escapes regular expression control characters within a string

The jreEscape user-defined function &#x28;UDF&#x29; ensures strings can be safely used in regex patterns by preventing special characters from being interpreted as regex metacharacters. The reescape function exists in Adobe ColdFusion, but not Lucee.