FileDocCategorySizeDatePackage
GetParen1.javaAPI DocExample332Mon Nov 18 12:33:22 GMT 2002None

GetParen1

public class GetParen1 extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

		Pattern patt = Pattern.compile("(\\w+)\\s(\\d+)"); 
		Matcher matcher = patt.matcher("Bananas 123"); 
		matcher.lookingAt();
		System.out.println("Name: " + matcher.group(1)); 
		System.out.println("Number: " + matcher.group(2));