|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] Problem with regular expression with XqueryDavid Carlisle davidc at nag.co.ukWed Feb 24 20:10:43 PST 2010
On 24/02/2010 19:52, Kenneth Dougherty wrote:
> Hello,
>
> The following problem has me stumped, and I would be grateful for any help.
>
> I am using a regular expression to test if a document number is correct.
> The number can end with either ‘P,’ ‘&P,’ or it may not have an ending
> value outside of the regular number.
>
> For example, if a valid document number was 503-302, it could be
> 503-302P, 503-302&P, or just 503-302.
>
> The incorrect regular expression so far is: [0-9]{3}\-[0-9]{3}&P|P.
[0-9]{3}\-[0-9]{3}(&?P)?
David
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








