What are the different between this two diff statement? Any reference document?
'{<table width="100%" border="0" cellspacing="0" cellpadding="0">.*?</table>}si' -> Success
'%<table width="100%" border="0" cellspacing="0" cellpadding="0">.*?</table>%si' -> Fail
Well, you are using a delimiter that’s used inside of your string, (
100%), if you decided to use % as a delimiter, you need to escape any instance of % inside the string with a backslash. The following will work: