Greetings,
I have no experience in working with regex, so I need a hand to accomplish the following.
I have a file with the following information:
"name","whencreated","distinguishedname" "Rune Olsson","2012-07-24 16:00:04","CN=Rune Olsson,OU=Bork,OU=viking,DC=viking,DC=local" "Arne Petersson","2006-12-27 15:09:08","CN=Arne Petersson,OU=Nangijala,OU=viking,DC=viking,DC=local" "Tengil Rosendal","2007-02-08 08:29:39","CN=Tengil Rosendal,OU=Birka,OU=viking,DC=viking,DC=local"
What I want is to "rip out" the OU were the user is located, so this is how I want to be like:
"Rune Olsson","2012-07-24 16:00:04","Bork" "Arne Petersson","2006-12-27 15:09:08","Nangijala" "Tengil Rosendal","2007-02-08 08:29:39","Birka"
I would really apreciate an regex (or another solution) on how to get it like that.
Thanks in advance!