Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error 'parentheses not balanced' from regexp #204

Open
Gergely opened this issue Mar 16, 2017 · 0 comments
Open

error 'parentheses not balanced' from regexp #204

Gergely opened this issue Mar 16, 2017 · 0 comments

Comments

@Gergely
Copy link

Gergely commented Mar 16, 2017

Hi,

I am not sure if this bug report exists but we have found some trouble with REGEXP in MySQL

https://github.com/designwall/dw-question-answer/blob/master/inc/Ajax.php#L287

error 'parentheses not balanced' from regexp

Source: https://dev.mysql.com/doc/refman/5.7/en/regexp.html

It seems to be double escaped parentheses need there in some cases (?)

PHP addslashes() could be a solution.

Case:
type "? : ) [ ] { } ...." characters into search bar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant