regexsplit not returning attribute

Cantor, Scott cantor.2 at osu.edu
Wed Nov 30 16:41:13 EST 2016


On 11/30/16, 4:31 PM, "users on behalf of Lipscomb, Gary" <users-bounces at shibboleth.net on behalf of glipscomb at csu.edu.au> wrote:

>    The 2 online testers both claim to test java    
>    Attribute value:   urn:mace:terena.org:schac:personalUniqueID:au:csuid:123456
>    Regex    [^:]+[^:]*$        and       [^:]+$

That plugin returns the first matching group. I don't think either of those expressions contains a matching group (I think those have to be parenthesized).

It seems like that's an awfully over-engineered expression. If all you want is the last segment after a fixed prefix, couldn't you just include the prefix literally?

^urn:mace:terena.org:schac:personalUniqueID:au:csuid:(.+)$

-- Scott




More information about the users mailing list