Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

regex: match any & not part of & a m p ;

807598Aug 1 2006 — edited Aug 1 2006
First on the side, any advice about taint best practices for taint checking with jsp/java would be appreciated.

Second, I'm trying to match any "&" that does not appear as part of "& a m p ;". (The spaces are not supposed to be there, but you wouldn't see anything otherwise.)

I haven't gotten anything that works satisfactorily. I've tried variations on:
Pattern.compile("&^(amp;)");
but with no avail, so I'm obviously missing something.

null
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 29 2006
Added on Aug 1 2006
11 comments
304 views