$text =~ s/%SEARCH{(.*)}%/&handleSearch($1)/ges; \n escape string in the original text. This can be handled in handleSearch (or whathever is its name) with a:$format =~ s/\\n/\n/go ; $n instead of \n as it is already in the FormattedSearch?
A separate issue is the search itself. The external grep search is currently line oriented. If we change that then it should be done only with an additional switch, this is for compatibility reasons.
-- PeterThoeny - 06 Dec 2001
Hey! I did'nt notice it was already implemented!!!
Wonderful!
-- AndreaSterbini - 08 Dec 2001