Subject: Re: [xsl] Using analyze-string to catch roman numerals? From: Syd Bauman <Syd_Bauman@xxxxxxxxx> Date: Thu, 9 Oct 2008 15:31:13 -0400 |
I can try to provide a more thorough response later, but right now I've gotta run, so I'll quickly point out that each of the actual roman numerals you want to convert does *not* have a letter before or after. Adjusting your regexp to test for that will fix your problem. But it may mean you need 2 tests, depending on end-of-string and begining-of-string conditions. ^(.*[^A-Za-z])(IVXL]+)([^A-Za-z].*)$ ^(IVXL]+)([^A-Za-z].*)$ ^(.*[^A-Za-z])(IVXL]+)$
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Using analyze-string to catch, Tony Zanella | Thread | Re: [xsl] Using analyze-string to c, G. Ken Holman |
[xsl] Using analyze-string to catch, Tony Zanella | Date | Re: [xsl] Using analyze-string to c, G. Ken Holman |
Month |