Q:

Regex to match line containing Two words

Below is my Content:
Subject:
    Security ID:        S-1-5-21-3368353891-1012177287-890106238-22451
    Account Name:       ChamaraKer
    Account Domain:     JIC
    Logon ID:       0x1fffb

Object:
    Object Server:  Security
    Object Type:    File
    Object Name:    D:\ApacheTomcat\apache-tomcat-6.0.36\logs\localhost.2013-07-01.log
    Handle ID:  0x11dc

I need to match the line containing Object Name using a Regular expression. 
Following is what i have tried:
^.*\b(Object|Name)\b.*$

The above regex matches Account Name:       ChamaraKer, But my requirement is to match the line containing the word Object Name.  How can i do this?  It would be great if any one could help me with this problem. 

A:

Your regex is actually trying to match lines that contains Object OR Name..
Change it it
^.*\bObject Name\b.*$

