I'm trying to access a certain part of multiple strings that follow a pattern.
Here's an example of what I'm trying to do.
String s = "Hello my name is Joe";
if(Pattern.matches(s,"Hello my name is ([\\w]*)"))
{
System.out.println("Name entered: $1");
}
However, my code never enters inside the "if-statement"
ifline is missing a closing parenthesis...