I run in an issue with the Stringy::regexReplace() method. I need to pass in a pattern with a "/" character in it. But this leads to an error, since the preg_replace() call inside regexReplace() uses the / as the delimiter for the regex pattern.
The easiest solution would be to add a 4th parameter to Stringy::regexReplace() which allows to specify a custom regex delimiter.
I run in an issue with the Stringy::regexReplace() method. I need to pass in a pattern with a "/" character in it. But this leads to an error, since the preg_replace() call inside regexReplace() uses the / as the delimiter for the regex pattern.
The easiest solution would be to add a 4th parameter to Stringy::regexReplace() which allows to specify a custom regex delimiter.