Regex space character

Hi,

I have following regex condition, however it does not work with different logs having same visible string.I believe it is because of some difference with space character, is it possible to make it work everywhere.

Can someone suggest a better string?

/BIND dn=" uid=/

Thanks.

Please post a file that it works on correctly and one that it doesn't.

We cant read your mind...so post a sample of the input and desired output along with any code you may have written for input processing...

Here is the log to scan:

[24/Jun/2013:07:21:40 -0600] conn=15570171 op=77 msgId=78 - BIND dn="uid=abc00,ou=people,o=xyz.com" method=128 version=3

So this is a file that fails. How does one succeeding file look like?

@OP:
Can you post the code you have to parse BIND dn="uid" string out of the logfiles...

Well, I am using an IF block like this -

if( /BIND dn="uid=/ ) {

                ...some statement..
                             }

The issue is when there are some space before "uid" string, here are two examples :

# no space before uid.

[24/Jun/2013:07:21:40 -0600] conn=15570171 op=77 msgId=78 - BIND dn="uid=abc00,ou=people,o=xyz.com" method=128 version=3

# space before uid.

[24/Jun/2013:07:21:40 -0600] conn=15570171 op=77 msgId=78 - BIND dn=" uid=abc00,ou=people,o=xyz.com" method=128 version=3

I would like my regex to take care of space as well.

I tried something like this, but it does not work.

BIND dn=\s"uid=

Thanks.

[ ]* - zero or more occurrence of space:

/BIND dn="[ ]*uid=/

Thank you, meanwhile I was able to come up with this .

BIND dn="\s*?uid=