<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 4/29/2022 2:05 PM, Rick Hoodenpyle
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:b3a6fcb14d39b057560634bca629bb21@mail.gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@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;}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;}div.WordSection1
{page:WordSection1;}</style>
<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=<a class="moz-txt-link-rfc2396E" href="mailto:^(.+)@(.+)$">"^(.+)@(.+)$"</a>
dest="LoginID">$1</Regex></p>
<p class="MsoNormal"> <Regex match=<a class="moz-txt-link-rfc2396E" href="mailto:^(.+)@(.+)$">"^(.+)@(.+)$"</a>
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>
</div>
</blockquote>
<p>Given K followed by numbers, and extracting just the numbers, you
would use something like:</p>
<p><font face="monospace"><Regex match="^K([0-9]+)$"
dest="kuid">$1</Regex></font></p>
<pre class="moz-signature" cols="72">--
%% Christopher A. Bongaarts %% <a class="moz-txt-link-abbreviated" href="mailto:cab@umn.edu">cab@umn.edu</a> %%
%% OIT - Identity Management %% <a class="moz-txt-link-freetext" href="http://umn.edu/~cab">http://umn.edu/~cab</a> %%
%% University of Minnesota %% +1 (612) 625-1809 %%
</pre>
</body>
</html>