I try to match a regex with java and can’t find the right regex
I want to match =?utf-8?B?XXXXXXXX=?= in
=?utf-8?B?UmVtaW5kZXI=?=
I tried :
s.matches("=\\?utf\\-8\\?B\\?.*=\\?=");
s.matches("=\\?utf-8\\?B\\?.*=\\?=");
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.
Are you sure? Which version of Java are you using?
I’ve made a basic test with your scenario and it works…
Console output: