RegexSplit resolver returning no values
Tom Scavo
trscavo at gmail.com
Fri Jan 29 09:54:06 EST 2016
On Fri, Jan 29, 2016 at 5:42 AM, Morris, Andi <amorris at cardiffmet.ac.uk> wrote:
>
> The attribute is declared as:
>
> <resolver:AttributeDefinition xsi:type="RegexSplit" xmlns="urn:mace:shibboleth:2.0:resolver:ad"
> id="PersonalRef"
> sourceAttributeID="description"
> regex="(\d{5})">
> <resolver:Dependency ref="myLDAP" />
>
> </resolver:AttributeDefinition>
>
> I need to grab the first 5 digits from a string, an example of which is below:
>
> 12345 some text 12/01/17
>
> Can anyone advise please?
Try: "^([0-9]+) .+$"
but I'm not sure if this regex is appropriate for "RegexSplit".
Tom
More information about the users
mailing list