3. Regular expressions
Using an editor of your choice, get the following tasks to work using a regular expression
- Find all head elements, and their contents.
- Find all occurrences of the name Smith, spelled Smith, Smyth, Smithe or Smythe, and put them in a persName tag with a standardised Smith attribute value.
- Find a head followed by a line break and replace the head without the line break.