<div dir="ltr">yes otherwise it would return true for things like man's-hat .</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 1, 2014 at 8:15 AM, John Lumley <span dir="ltr"><<a href="mailto:john@saxonica.com" target="_blank">john@saxonica.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><span class=""><div>On 1 Dec 2014, at 08:06, Ihe Onwuka <<a href="mailto:ihe.onwuka@gmail.com" target="_blank">ihe.onwuka@gmail.com</a>> wrote:</div><div><br></div><blockquote type="cite"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><div>If it's only the castable test you are after, you could use matches(., '\i\c*')</div><div><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div><div><br></div></div></div></div></div></blockquote><div><br></div><div>This returns true for matches('1880s','\i\c*') in Saxon XSLT and Zorba.</div></blockquote><br></span><div>Perhaps the match should be anchored: matches(.,'^\i\c*$')</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>John Lumley</div></font></span></div></blockquote></div><br></div>