I would like some help in getting this regex to accept the space character.
The following regex works ^a|a$|a but this one doesn’t ^tips to|tips to$|tips to.
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.
try escaping just the last space (the regex engine will then “see” that “tips to” is one block – at least for the last OR)
^tips to|tips to$|tips\ toor to be on the safe side group what your searching for
^(tips to)|(tips to)$|(tips to)[EDIT 1]
so here’s the solution the OP is using: