Is it okay to set a string lets say $expression='^[A-E]' in php?
I’m trying to pass it as a regular expression but I find that its being used as something messed up like %5E%5BA-E%5D
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That looks like it’s been passed through a URL.
You can decode that to get the string you want using
urldecode.