Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

matcher.maches() return false

Why this code fails ?

Because of you think you do something like "Oh dear it contains the word!", but you're confuse matches with find

From Javadoc:

public boolean matches()
Attempts to match the entire region against the pattern.

So groovy is just a subsequence.
You must use

  • No labels