I want to replace the following strings:
chrome, internet explorer, mozlla, opera
or
john, jack, jill, bill
with
?, ?, ?, ?
I need a regular expression for Java which can replace the above string. Find all words and replace with question marks
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.
Something like this:
[Edit] You are changing the question faster then I can answer.
To replace any word:
\b– first or last character in the word\w– alphanumeric+– one or more repetitions