Posted By

karlhorky on 11/10/09


Tagged

link search replace empty links anchor regular expressions Expression href RegularExpression footnote Footnotes searchreplace anchors pspad


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Tyster


Regular Expression Search / Replace (PSPad): Replace Empty Footnotes Anchors with Linked Numbers


 / Published in: Regular Expression
 

This search and replace fixes empty footnote anchors that appear when copying / pasting Word content into a Dreamweaver html document.

  1. // Language: Regular Expression Search / Replace (PSPad)
  2. // Title: Replace Empty Footnotes Anchors with Linked Numbers
  3. // Description: This search and replace fixes empty footnote anchors that appear when copying / pasting Word content into a Dreamweaver html document.
  4. // Author: Karl Horky
  5. // Creation Date: 10 November 2009
  6. // Last Modified Date: 10 November 2009
  7.  
  8. Search:
  9. (<a\shref="#_ftn(ref)?(\d{1,2})"\sname="_ftn(ref)?\d{1,2}"\stitle=""\sid="_ftn(ref)?\d{1,2}">)\s(</a>)
  10.  
  11. Replace:
  12. <sup>$1$3$6</sup>

Report this snippet  

You need to login to post a comment.