Re: Third Party Jar - Regular Expression Pattern
Re: Third Party Jar - Regular Expression Pattern
- Subject: Re: Third Party Jar - Regular Expression Pattern
- From: "Jonathan Fleming" <email@hidden>
- Date: Sat, 29 Mar 2003 20:49:06 +0000
From: Mike Little <email@hidden>
To: "Jonathan Fleming" <email@hidden>
Subject: Re: Third Party Jar - Regular Expression Pattern
Date: Sat, 29 Mar 2003 14:33:50 -0600
Try this:
http://apache.mirrorcentral.com/dist/jakarta/regexp/
Thanks Mike, that got it
Jonathan
On Saturday, March 29, 2003, at 02:24 PM, Jonathan Fleming wrote:
From: Art Isbell <email@hidden>
To: email@hidden
Subject: Re: Third Party Jar - Regular Expression Pattern
Date: Sat, 29 Mar 2003 10:02:32 -1000
On Saturday, March 29, 2003, at 05:31 AM, Jonathan Fleming wrote:
I'm, using this syntax for regular expressions:
Regex cleaner = new Regex("(?:[\\/:?*\"<>|-]){1,}|(?:\\s+)","_");
in RegEx from the Package com.stevesoft.pat version 1.5 of Regular
Expressions in Java
Does any one know how to get this to substitute a backslash from a
string
===RegEx Syntax is OK(?:(?:[/:?*\"<>|\-]){1,}(?# <= fast multi)|(?:[ -
]{1,}(?# <= fast multi)){1,})
This seems odd to me. The reading, writing, and Regex processing of the
regex string aren't removing the backslash that protects the double
quote, yet both the initial two backslashes are removed and a backslash
has been added to protect the dash! So it's difficult to know from where
you've output the regex string what's happening.
The Apache Jakarta regex package I'm using
(http://jakarta.apache.org/regexp/)
I can't actually find the download, can you point me to it please
uses a regex format that's more familiar to me and that supports
specifying a backslash character in a regex string using two backslash
characters as you've done. In cases like this, I've resorted to trying
three or four backslashes in hopes that something will work. If not, I'd
consider trying the Jakarta package instead. You shouldn't have to waste
time on stuff like this.
Yeah your right :)
Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_________________________________________________________________
Use MSN Messenger to send music and pics to your friends
http://www.msn.co.uk/messenger
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger
http://www.msn.co.uk/messenger
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.