The javax.util.regex package is a new package in Java 2 Platform,
Standard Edition version 1.4. The package provides a regular
expression library. A regular expression is a pattern of
characters that describes a set of strings, and is often used in
pattern matching. The classes in the javax.util.regex package
let you match sequences of characters against a regular
expression. These classes, which comprise the regular expression
library, use the Perl 5 regular expression pattern syntax, and
provide a much more powerful way of parsing text than was
previously available with the java.io.StreamTokenizer and the
java.util.StringTokenizer classes.

The regular expression library has three classes: Pattern,
Matcher, and PatternSyntaxException. Ignoring the exception class,
what you really have is one class to define the regular
expression you want to match (the Pattern), and another class
(the Matcher) for searching a pattern in a given string.

Regards,
Vikramjit Singh,
Systems Engineer,
GTL Ltd.
Ph. 7612929-1031


-----Original Message-----
From: Emmanuel Eze [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 7:08 AM
To: [EMAIL PROTECTED]
Subject: Re: Passing "array parameters" from one page to another


Hi all,

Does anyone know any java class or method that will enable me repeat a
character n times?

Example:  if I want "******", I will call methodname('*',6).

Thanks in advance

Emma

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to