FileDocCategorySizeDatePackage
RE_QnotU_Args.javaAPI DocExample539Thu Mar 15 17:10:48 GMT 2001None

RE_QnotU_Args

public class RE_QnotU_Args extends Object
Match the "Q[^u] pattern against strings from command line.
author
Ian F. Darwin, ian@darwinsys.com
version
$Id: RE_QnotU_Args.java,v 1.6 2001/03/15 22:10:49 ian Exp $

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

		String patt = "^Q[^u]\\d+\\.";
		RE r = new RE(patt);
		for (int i=0; i<argv.length; i++) {
			boolean found = r.match(argv[i]);
			System.out.println(patt +
				(found ? " matches " : " doesn't match ") + argv[i]);
		}