2011-09-09, 02:38 PM
I'm currently working on a plugin, which should detect quote mycodes which link to a post. I'm not really good in regular expressions and I was trying yesterday a long time, but couldn't make it work. Could someone please help me? My current RegEx is:
And I also tried the RegEx from the MyCode parser, but it also didn't work.
Update: Works Now.
#\[quote='(.*?)' pid='(.*?)' dateline='(.*?)'\](.*?)\[\/quote\]#i
And I also tried the RegEx from the MyCode parser, but it also didn't work.
#\[quote=([\"']|"|)(.*?)(?:\\1)(.*?)(?:[\"']|")?\](.*?)\[/quote\](\r\n?|\n?)#esi
Update: Works Now.