You have a regex containing only text, for example, "this text". When the method matches() takes such a regex, it returns true when applied to ...
Regexps in Java
Matches?
Report a typo
Select one option from the list
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.