It sounds like what you want to do is specify that the input record separator be any number of blank lines. Then, for each record, replace the number present with a variable that gets incremented after each paragraph. Finally, output the record, followed by a blank line.
In reply to Re: a simple match and replace script
by talexb
in thread a simple match and replace script
by Aldebaran
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |