trimRegex ( string txt , string regex , string|default:(?si) flags ) : string
Trim a string using regex
Example
console(trimRegex('hello world
', /(?si)<([^<>]+)>/)) //-> "hello world
"
Parameters
txt
regex
without flags
Trim a string using regex
console(trimRegex('hello world
', /(?si)<([^<>]+)>/)) //-> "hello world
"