search pattern in Notepad++
<p>1) First I want to search a text with pattern such as </p>

<pre><code>   app(abs(something),abs(something))
</code></pre>

<p>in a large text using Notepad++, a sample of the text shown below:</p>

<pre><code>app(abs(any length of characters here),abs(any length of characters here)),
tapp(abs(any length of characters here),abs(any length of characters here)),
app(abs(any length of characters here),app(any length of characters here)),
app(abs(any length of characters here),some(any length of characters here)),
app(abs(any length of characters here)) ,abs(any length of characters here))
</code></pre>

<p>when I use "app(abs((.<em>?)),abs((.</em>?)))"  to search it finds first and second line in above sample. 
The second line is not what I am searching.
what is wrong with my expression?</p>

<p>2) If possible ,I want the opened and closed parenthesis ( )  after each "abs" should matched, such as</p>

<pre><code>   "app(     abs(..(..)..),abs(..(..(...)..)..)   )"
</code></pre>

<p>but not as</p>

<pre><code>   "app(abs((), abs())"
</code></pre>

<p>where first abs has unmatched parenthesis.</p>

<p>Please give some advice!</p>

<p>Thanks in advance</p>