It's lunch time where I'm at. That doesn't sound like too much work. > -----Original Message----- > From: Raible, Matt [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 17, 2003 10:38 AM > To: 'Struts Users Mailing List' > Subject: RE: regular expression help > > > Damn, I meant to say "sounds like *it'll* work" - is it > lunchtime yet?! > > -----Original Message----- > From: Jarnot Voytek Contr AU HQ/SC > [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 17, 2003 9:23 AM > To: 'Struts Users Mailing List' > Subject: RE: regular expression help > > > Well if it sounds like work, I hope you're getting paid ;) > here it is in validator format > > <constant> > <constant-name>const</constant-name> > <constant-value>^(\+|\-|\s)$</constant-value> > </constant> > > if you want to allow multiple characters ("+ +-"), use (\+|\-|\s)* > > -- > Voytek Jarnot > Quidquid latine dictum sit, altum viditur. > > > -----Original Message----- > From: Raible, Matt [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 17, 2003 10:04 AM > To: 'Struts Users Mailing List' > Subject: RE: regular expression help > > > Sounds like it's work, I'm trying to create a constant for > the validator - > where a field can only have +, - or " " > > <constant> > <constant-name>zip</constant-name> > <constant-value>^\d{5}\d*$</constant-value> > </constant> > > > -----Original Message----- > From: Jarnot Voytek Contr AU HQ/SC [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 8:14 AM To: 'Struts Users Mailing List' Subject: RE: regular expression help
how about (\+|\-|\s) -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. -----Original Message----- From: Raible, Matt [mailto:[EMAIL PROTECTED]] Sent: Friday, January 17, 2003 8:04 AM To: '[EMAIL PROTECTED]' Subject: regular expression help Anyone know a good regular expression translator - or the equivalent of allowing "+", "-" or " "? Thanks, Matt -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

