D dalmidog New Member Sep 15, 2012 #1 Trying to check the string for pattern.\[code\]$variable = '[text]';if (eregi("/(\[(.*?)\])/", $variable)) {}\[/code\]This code gives error \[code\]eregi() [function.eregi]: REG_BADRPT\[/code\]What is the solution for this?
Trying to check the string for pattern.\[code\]$variable = '[text]';if (eregi("/(\[(.*?)\])/", $variable)) {}\[/code\]This code gives error \[code\]eregi() [function.eregi]: REG_BADRPT\[/code\]What is the solution for this?