RegexSplit syntaxing

Goggins, Patrick gogginsp at uwgb.edu
Tue Apr 28 10:21:31 EDT 2015


Got it working, "^.*(\d{9})$" did the trick.

Thanks,

~Patrick

-----Original Message-----
From: users [mailto:users-bounces at shibboleth.net] On Behalf Of Tom Scavo
Sent: Saturday, April 25, 2015 12:45 PM
To: Shib Users
Subject: Re: RegexSplit syntaxing

On Fri, Apr 24, 2015 at 5:38 PM, Christopher Bongaarts <cab at umn.edu> wrote:
> Try combining my response with Luca's:  regex=".*(\d{9})"

Or perhaps the following: ^.*(\d{9})$

> On 4/24/2015 4:12 PM, Goggins, Patrick wrote:
>>
>> 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"?
>>
>
> --
> %%  Christopher A. Bongaarts   %%  cab at umn.edu          %%
> %%  OIT - Identity Management  %%  http://umn.edu/~cab  %%
> %%  University of Minnesota    %%  +1 (612) 625-1809    %%
>
> --
> 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