Arbortext Command Language > Using the Arbortext Command Language > Using Regular Expressions > Searching for Tags or Entities
  
Searching for Tags or Entities
The find, set, caret, and window commands include options that scan markup. To search for markup, you must enable markup scanning either by specifying the -m option for the command, or by entering set markupscan=on on the command line.
Arbortext Editor can recognize a start tag as <element-name>, an end tag as </element-name>, or an entity reference as &entity-name;. For example, the command find -m '</para>' would search for the next end paragraph tag, and find -m '&prodname;' would search for the next reference to the text entity named prodname.
Regular expressions can be used in the tag or entity name if you specify either the -e option as part of the command or if set expressions=on option is in effect. For example, you could use the command find -m -e '</.*>' to search for the next occurrence of any end tag.
To search for missing punctuation before certain end tags you could use:
find -e -t '[^.?!]</(para|item)>'
Related Topics
find command
substitutecommand
Searching for patterns