vendredi 16 octobre 2015

Getting full word with Matchers / Patterns

In my Bukkit plugin I'm making an advertisement blocker, and am getting the words through a pattern and matcher. Although, I am going more in depth with it and not just looking for the numbers . numbers etc, I'm looking if there are a specific amount of .'s in the statement, and if it is 4, block the message. But, when I get the String with matcher.group() it only gives me the blocked part, not the full word with the rest of chars.

Is there a way to find get the whole word / char sequence instead of part of it from the pattern?

Aucun commentaire:

Enregistrer un commentaire