Search code examples
javavariablesinputirc

Matching and extracting data in string


Can someone help me (and change the title, I couldn't think of one)? I need to look for a command with Pircbot and I need it to be able to read a command like this:

!online user

And I need to do it with this:

something.equalsIgnoreCase("online");

I have no idea how to do it with it being able to read user with that and possibly export it to a variable? Can anyone help?

Sorry if it's really confusing.


Solution

  • You could use Scanner class in java.