Hi. I'm kinda fond of the SE regEx, so that's how this example is constructed. Consider:
$rstE = mysql_query($query_rstE, $jimlang_events) or die(mysql_error());
$row_rstE = mysql_fetch_assoc($rstE);
$totalRows_rstE = mysql_num_rows($rstE);
Now, let's say I want a comment and blank line to follow every line ending in "($rstE);"
My expression is:
{\(\$rstE\);}\n
and I'll replace it with
#0\n//comment line here...\n\n
which then gives me:
$rstE = mysql_query($query_rstE, $jimlang_events) or die(mysql_error());
$row_rstE = mysql_fetch_assoc($rstE);
//comment line here...
$totalRows_rstE = mysql_num_rows($rstE);
//comment line here...
Specifically, in the find & replace dialog, the Reg Ex has to be selected AND you have to have the right kind.
Does that help?