Hi,
I would like to capture rows having the following format :
BIND dn="uid=euser00,ou=people,o=example.com"
except "euser00" which is user id, others should remain as it is. Here is what I can try so far :
BIND dn="\s*?uid=s*
Also, people or example can be of any case ( lower or upper ).
Thanks.
Yoda
2
Which programming language are you using?
RudiC
3
Is that a regex that you ask for? Try
grep -i 'BIND dn="uid=.*,ou=people,o=example.com"' file
Thanks for the response. I am in need of Regex Expression to be used within Perl.
ex :
/BIND dn="\s*?uid=s*/
/BIND dn="uid=.*,ou=people,o=example\.com"/i
1 Like