If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

why php preg_match for single quote doesn't work

However, I did want to give them the option of using a single quote so I added \' to the regexp and it doesn't work. That is, when user enters single quote in the comment form, it results in an error - like AS IF i had restricted them from using it.