nawk help

Hi Gurus,
I am using a script as under :

read string
nawk -v search="$string" '
/a/,/z/ {
block = (block ? block ORS : "") $0;
}
/z/ {
if (block ~ search)
print block;
} ' <File>

nawk -v search="$string" '
/b/,/z/ {
block = (block ? block ORS : "") $0;
}
/z/ {
if (block ~ search)
print block;
} ' <File>

My question is that instead of going two times for query as string is common for both cases, can I accumulate the both the queries as under :

read string
nawk -v search="$string" '
/a|b/,/z/ {
block = (block ? block ORS : "") $0;
}
/z/ {
if (block ~ search)
print block;
} ' <File>

Pls help me.
Thnx in advance....

Yes, you can. Just try it out, it is easy to test.