• Happy Coding

Regular Expressions with TextMate

Just needed to replace some difficult strings in a huge text-file and found this site which explains how to use regular expressions with my favorite editor TextMate.

This small regular expression surrounds for example the value-attributes of elements with quotes, if the value has the length 2.

Find: value=(..)
Replace: value="$1"
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • Ma.gnolia
  • MisterWong
  • Reddit
  • SphereIt
  • StumbleUpon
  • Technorati
  • TwitThis
  • Yigg
  • LinkedIn
  • Print this article!
  • Tumblr
  • Pownce
Share your opinion! Post your thoughts.