• Guys, I’m getting this error,

    preg_replace(): Compilation failed: regular expression is too large
    From my insert.php plugin file, line 52

    Anyone have an idea how to increase their size so they can read?

Viewing 1 replies (of 1 total)
  • Plugin Author WillBontrager

    (@willbontrager)

    On line 52 of your PHP code, the PHP compiler sees a regular expression that’s too large for it to compile.

    Insert PHP works by putting the PHP code found between [insert_php] and [/insert_php] tags through the PHP eval() function. I speculate that it’s possible using eval() reduces the regular expression size the PHP compiler can handle; but I don’t know it for a fact.

    It may be necessary to split the regular expression into two or more expressions so the compiler can handle it.

    Will

    • This reply was modified 7 years, 8 months ago by WillBontrager.
Viewing 1 replies (of 1 total)
  • The topic ‘Warning: preg_replace: Compilation failed’ is closed to new replies.