AttributeDefinition: Regex not woking

Losen, Stephen C. (scl) scl at
Fri May 27 08:22:55 EDT 2016

Hi Marcel,

Try using this for your regex: "uid=([^,]*),.*"

I think the regex must match the entire input string, at least that has been my experience.

Stephen C. Losen
ITS - Systems and Storage
University of Virginia
scl at    434-924-0640

-----Original Message-----
From: users [mailto:users-bounces at] On Behalf Of Marcel Kleiber
Sent: Friday, May 27, 2016 8:15 AM
To: Shib Users
Subject: AttributeDefinition: Regex not woking


We have a Regex not working in attrDef type ad:RegexSplit and as well in 
type ad:Mapped

the input is "uid=USZ:10001,ou=HcProfessional,o=HPDICW,dc=HPD"
the output shold be      "USZ:10001"
the regex is                     "uid=([^,]*),"

In pure java this works by means of mapper.find(), it does not work by 
means of mapper.matches().
I've read somewhere Shib uses mapper.matches() ?

Help is appreachated...
To unsubscribe from this list send an email to users-unsubscribe at

More information about the users mailing list