<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta name="Generator" content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang="EN-GB" link="#0563C1" vlink="#954F72" style="word-wrap:break-word"><div class="WordSection1"><p class="MsoNormal">I often have to separate username from the email address using the following:</p><p class="MsoNormal"> </p><p class="MsoNormal"><!--<AttributeResolver type="Transform" source="upn"></p><p class="MsoNormal">              <Regex match="^(.+)@(.+)$" dest="LoginID">$1</Regex></p><p class="MsoNormal">              <Regex match="^(.+)@(.+)$" dest="domain">$2</Regex></p><p class="MsoNormal"></AttributeResolver>--></p><p class="MsoNormal"> </p><p class="MsoNormal">I have a client though that passes an ID through the UID attribute. It begins with a letter K and ends with the numerical ID, example K98456.</p><p class="MsoNormal"> </p><p class="MsoNormal">The value that this must equate to in my application is a numerical only value, so I am needing to find out how to remove the K and only pass the numbers. I have thought about maybe using the following, but have not had a chance to test it and was wondering if someone out there might already know how to do this.</p><p class="MsoNormal"> </p><p class="MsoNormal"><!--<AttributeResolver type="Transform" source="uid"></p><p class="MsoNormal">              <Regex match="^(.+)[0-9](.+)$" dest="kuid">$1</Regex></p><p class="MsoNormal"></AttributeResolver>--></p><p class="MsoNormal"> </p><p class="MsoNormal">Cheers,<br><br>Rick</p><p class="MsoNormal"> </p></div></body></html>