Removing figure references.
ArborX


Summary
This example removes figure references, only leaving the text between them.

Remove the fig refs from an entry such as, ...<figr figref="1">see figure 1</figr>... leaving just the text between them:

The syntax has been broken down into understanable sections below. This first section intructs Arbortext APP to search for <figr figref=", and then any character excluding a closing chevron >. The * means match the preceding regular expression as many times as possible before continuing with remainder of the pattern.

Now search for any characters until you see an opening chevron < there could be many characters before the next open chevron so the * is again present to repeat this search. The parenthesis are there to indicate this is a group that will be used later for the replacement text.

Replace the searched text with the result found in group 1.

 /<figr figref="[^>]*>([^<]*)<\47\figr>/\\1/tgciqr 6
 /<figr figref="[^>]*>... 8
 ...([^<]*)... 10
 /\\1/tgciqr 12

Document created on 08-Feb-2003 (revision 1)