RegexSplit syntaxing
Goggins, Patrick
gogginsp at uwgb.edu
Fri Apr 24 17:12:13 EDT 2015
I've tried the grouping earlier but with no affect.
Sample source: 1972163380409927
Expected result: 380409927
The .*\d{9} throws a java error, when testing the syntax it matches the entire value and not the last 9-digits.
~Patrick
-----Original Message-----
From: users [mailto:users-bounces at shibboleth.net] On Behalf Of Filipozzi, Luca
Sent: Friday, April 24, 2015 3:40 PM
To: Shib Users
Subject: Re: RegexSplit syntaxing
Don't you need to define a match group? The first match group is returned as the value of the attribute, I believe. In other words, something like "(\d{9})\b"?
--
Luca Filipozzi, UBC IT Enterprise Architecture
On 2015-04-24, 13:35, "Goggins, Patrick" <gogginsp at uwgb.edu> wrote:
>I'm running into an issue with the RegexSplit type, it's a pretty simple return the last 9 digits scenario.
>
>The below works and outputs an integer longer than 9 digits
>
> <resolver:AttributeDefinition xsi:type="ad:Simple" id="CampusID" sourceAttributeID="employeeNumber">
> <resolver:Dependency ref="myLDAP" />
> <resolver:AttributeEncoder xsi:type="enc:SAML2String" name="urn:oid:1.2.840.113556.1.2.610" friendlyName="CampusID" />
> </resolver:AttributeDefinition>
>
>The below is returning no values
>
> <resolver:AttributeDefinition xsi:type="RegexSplit" xmlns="urn:mace:shibboleth:2.0:resolver:ad" id="CampusID" sourceAttributeID="employeeNumber" regex="\d{9}\b">
> <resolver:Dependency ref="myLDAP" />
> <resolver:AttributeEncoder xsi:type="enc:SAML2String" name="urn:oid:1.2.840.113556.1.2.610" friendlyName="CampusID" />
> </resolver:AttributeDefinition>
>
>Ideas?
>
>Thanks,
>
>~Patrick
>--
>To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
--
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
More information about the users
mailing list