Actually, the "replace" function doesn't use regular expressions - it only
finds literal matches.

*replace<http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#replace%28java.lang.CharSequence,%20java.lang.CharSequence%29>
*(CharSequence<http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html>
target,
CharSequence<http://java.sun.com/j2se/1.5.0/docs/api/java/lang/CharSequence.html>
 replacement)
          Replaces each substring of this string that matches the literal
target sequence with the specified literal replacement sequence.

"replaceAll" in contrast DOES use regular expressions.

John
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to