Regexep Plugin
Posted: Fri Jun 03, 2016 9:03 am
Hi!
I hope somebody can help me with a question regarding an expression within the Regexp Plugin. I need to replace a string like
However, this will only replace the first occurence of \u until the next backslash appears. In the example above this would result in
Thanks in advance!
I hope somebody can help me with a question regarding an expression within the Regexp Plugin. I need to replace a string like
This basically an ASCII representation of emojis which do not get interpreted. I have played around a little with the plugin and ended up with\ud83d\ude0a\ud83d\ude0a\ud83d\ude0a
Code: Select all
$regexpArray = array(
'SearchArray' => array("/[^\w]\\\u([\w]+)/i"),
'ReplaceArray' => array(' test')
);
Does anybody have an idea what expression I have to configure to replace the hole string?test\ud83d\ude0a\ud83d\ude0a
Thanks in advance!