s/(<!--%EDITTABLESTUB{
([0-9]+) # $2
}%-->[ ]*\n) # end $1 EDITTABLESTUB followed by zero or more spaces, and one newline
( ( # start $3, $4
( [ \t]* \| [^\n]* \| ) # zero or more (space or tab), |, zero or more non-newlines, |
[ \t]* \n # zero or more (space or tab), newline
)+ # end $4 One or more of the preceding subpattern
# (subpattern = one table row including trailing newline)
) # $3
/addSearchResultsTableTextToTableObject($_[2], $_[1], $1, $2, $3)/geosx;
