Forum Discussion

alchemiz's avatar
alchemiz
Contributor III
2 years ago
Solved

String replace method where pattern is dynamic

Hi SMEs, Quick question, is there a way to set the regex pattern in replace method dynamically? Example:   Thanks
  • alchemiz's avatar
    2 years ago

    All good, by putting eval($pattern) will accept the regex pattern.