Joke Collection Website - Public benefit messages - Java checks whether the string conforms to the custom template.

Java checks whether the string conforms to the custom template.

Yes, that's right. The enthusiastic netizen's opinion is right.

String regular expression = ". * Today. * Go or not. *3\\:00.* ";

string a =“abcdefg“;

if(a . matches(regex)){

// TODO

}