I want to substract a wanted section between {}, like:
void fo { ........ { //first one f = fopen(...); ....... if(...) { } } //mapping one ........ }
and I want to get the <fopen> belonged {}:
How to get it? use m/({[^{]*fopen.*)/ can get the first { to fopen, but how to get the mapping }? Thanks a lot.{ //first one f = fopen(...); ....... if(...) { } } //mapping one
In reply to a question about re by SonicWang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |