1.

What Does “contain” And “matches” Indicates In The Regular Expression?

Answer»

In the REGULAR expression, CONTAINS indicates that the regular expression matched at least some part of the target. While MATCHES means the regular expression matched the WHOLE target. So, ‘alphabet’ is “matched” by ‘AL.*t.’

In the regular expression, contains indicates that the regular expression matched at least some part of the target. While matches means the regular expression matched the whole target. So, ‘alphabet’ is “matched” by ‘al.*t.’



Discussion

No Comment Found