RegexSplit syntaxing
Christopher Bongaarts
cab at umn.edu
Fri Apr 24 17:38:05 EDT 2015
Try combining my response with Luca's: regex=".*(\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 %%
More information about the users
mailing list