You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Patrick Plaatje <pp...@gmail.com> on 2009/10/27 11:41:43 UTC

JCR name regexp

Hi all,

i was wondering if a regular expression exists that will check a given
string (nodename or path element) to be JCR compliant?

Thanx,

Patrick

Re: JCR name regexp

Posted by Tobias Bocanegra <tr...@day.com>.
well, sure. but i don't know it by heart :-)

for quick validation use:

org.apache.jackrabbit.spi.commons.conversion.NameParser.checkFormat(String
jcrName)

regards, toby

On Tue, Oct 27, 2009 at 11:41 AM, Patrick Plaatje <pp...@gmail.com> wrote:
> Hi all,
>
> i was wondering if a regular expression exists that will check a given
> string (nodename or path element) to be JCR compliant?
>
> Thanx,
>
> Patrick
>