Created
October 13, 2010 06:59
-
-
Save bradleybeddoes/623595 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def subject = "CN=idp1-aaftest.usq.edu.au,OU=Division of ICT,O=University of Southern Queensland,STREET=1 West St.,L=Toowoomba,ST=Queensland,2.5.4.17=#130434333530,C=AU" | |
| def cn = subject =~ /^(?:.*,)*[cC][nN]=([^,]+)(?:,.*)*$/ | |
| cn.each {println it} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment