RE: Getting a regular expression from application.properties

2004-11-25 Thread Simon Matic Langford
by character basis... > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow > Sent: 24 November 2004 17:59 > To: [EMAIL PROTECTED] > Subject: Re: Getting a regular expression from application.properties > > > > Did you try

Re: Getting a regular expression from application.properties

2004-11-24 Thread Bill Siggelkow
Did you try escaping the single qoutes with a backslash? ^[0-9]\'{\'0,10\'}\'(,[0-9]\'{\'0,2\'}\')?$ Simon Matic Langford wrote: I have a regular expression for date formatting (don't ask!) in our application.properties. This can change depending on user locale. I am trying to get the following val

Getting a regular expression from application.properties

2004-11-24 Thread Simon Matic Langford
I have a regular expression for date formatting (don't ask!) in our application.properties. This can change depending on user locale. I am trying to get the following value back: ^[0-9]'{'0,10'}'(,[0-9]'{'0,2'}')?$ However in MessageResources at line 346: format = new MessageFormat(escape(formatS