Re: Need some examples of characters that match this regex: \p[N]

George Cristian Bina <[email protected]>
Newsgroups gmane.text.xml.schema.devel
Message-ID <[email protected]>
Hi Roger,

The oXygen regexp builder can contain any test so you can enter the 
characters directly.
To easily get such characters like Ⅹ you can use a simple stylesheet 
like below and write them as entities in the stylesheet and in the 
output you will find the actual characters that you can paste into the 
regexp builder:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
version="2.0">
     <xsl:output method="text"/>
     <xsl:template match="/">
         <xsl:text>&#x2169;</xsl:text>
     </xsl:template>
</xsl:stylesheet>

Best Regards,
George
-- 
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 12/30/10 10:25 PM, Costello, Roger L. wrote:
>> Did you use the normal X character or the Unicode character for the
>> roman numeral X?  It would have to be the latter.
>
> Ah! That never occurred to me. Yes, I used the normal X character.
>
> How do I obtain the Roman numeral X so that I can check it with Oxygen XML's Regular Expression Builder?
>
> More generally, how do I enter character entities into Oxygen XML's Regular Expression Builder? For example, the hex value of the digit 2 is x32. I entered this character entity reference in Oxygen XML's Regular Expression Builder:
>
>     &#x032;
>
> And it didn't match on \p{N}
>
> /Roger
>
>
>
> -----Original Message-----
> From: Kevin Braun [mailto:[email protected]]
> Sent: Thursday, December 30, 2010 3:07 PM
> To: Costello, Roger L.
> Cc: [email protected]
> Subject: Re: Need some examples of characters that match this regex: \p[N]
>
> Did you use the normal X character or the Unicode character for the
> roman numeral X?  It would have to be the latter.
>
> On 12/30/2010 2:48 PM, Costello, Roger L. wrote:
>> Hi Kevin,
>>
>> For this regex:
>>
>>      \p[N]
>>
>> I tested it using Oxygen XML's Regular Expression Build and it did not accept these Roman numerals:
>>
>>      X, x, I, i, ii, iii, iv
>>
>> /Roger
>>
>>
>> -----Original Message-----
>> From: Kevin Braun [mailto:[email protected]]
>> Sent: Thursday, December 30, 2010 2:44 PM
>> To: Costello, Roger L.
>> Cc: [email protected]
>> Subject: Re: Need some examples of characters that match this regex: \p[N]
>>
>> Hi Roger,
>>
>> If I recall correctly, there are roman numeral characters that match.
>>
>> Kevin
>>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.