Welcome Guest, Not a member yet? Register   Sign In
problem with [coder] tags in article
#5

[eluser]narkaT[/eluser]
[quote author="double_d" date="1228165872"]escaping square brackets gives me error when returning data from array ...[/quote]

because no matches are found.
you should check if the expression matched anything before working with the "result":

Code:
if ( preg_match(/*....*/) ) {
    // your code
}

your expression won't match anything containing newlines because
the appropriate pattern modifier is missing Smile


Messages In This Thread
problem with [coder] tags in article - by El Forum - 12-01-2008, 08:45 AM
problem with [coder] tags in article - by El Forum - 12-01-2008, 08:58 AM
problem with [coder] tags in article - by El Forum - 12-01-2008, 09:03 AM
problem with [coder] tags in article - by El Forum - 12-01-2008, 09:11 AM
problem with [coder] tags in article - by El Forum - 12-01-2008, 09:42 AM
problem with [coder] tags in article - by El Forum - 12-01-2008, 10:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB