FileDocCategorySizeDatePackage
StringConvenience.javaAPI DocExample482Sun Feb 22 20:37:34 GMT 2004None

StringConvenience

public class StringConvenience extends Object
StringConvenience -- demonstrate java.lang.String convenience routine
author
Ian F. Darwin
version
$Id: StringConvenience.java,v 1.2 2004/02/23 02:37:34 ian Exp $

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


		String pattern = ".*Q[^u]\\d+\\..*";
		String line = "Order QT300. Now!";
		if (line.matches(pattern)) {
			System.out.println(line + " matches \"" + pattern + "\"");
		} else {
			System.out.println("NO MATCH");
		}