Jump to content

EcoReality

Member
  • Posts

    4
  • Joined

  • Last visited

Reputation Activity

  1. Like
    EcoReality got a reaction from fredcallaway in Regular Expressions for snippets   
    I really like the {clipboard} variable in snippets, but it would be nice to be able to modify the clipboard as part of including it.
     
    Regular Expression syntax is pretty heavy, but there are lots of references, and with the simple inclusion of a lib, it should be almost free to implement.
     
    But I'd be happy with any reasonably powerful editing scheme. In particular, I like to turn the clipboard into Google search links, but they really should be "HTMLized" so that spaces are changed into plus signs, punctuation is removed, etc.
     
    Here is an example: <a href="http://www.lmgtfy.com/?q=Here is an example:">Here is an example:</a> But you really want the search to be "q=Here+is+an+example" (dropped punctuation) or "q=Here+is+an+example%3A" (HTMLized punctuation). With regular expressions, either would be easy to do.
×
×
  • Create New...