Hey everyone,
I have this format -
cn=<name>,ou=<>,ou=people,dc=<>,dc=<>,dc=<> that i'm pulling that i need to use only the cn= field. how can i do it with the regex command? is that possible?
thanks!!
excellent, i see it now. works perfect. thanks!
thanks for the info.
when saying your existing field you mean to put the actual field that contain the format? also is there a way to save that so i could do a stats to show the output only with the cn value?
Hi
you could use this
...
| rex field=<your existing field> "cn=(?<cn>[^,]+)"
r. Ismo
PS. regex101.com is excellent place to test these!