FoggyLog

Tue Jun 5th 2007 15:30:30: Regular Expressions in Ultraedit

I keep teaching myself regular expressions in Ultraedit, however then forget how to do them again as I don't use them regularly enough {insert "budum-tish" here}

Therefore here is my list of example regular expressions which will grow when ever I create some more... This list assumes you've selected "UltraEdit style Regular Expressions" in Advanced > Configuration > Search > Regular Expression Engine which isn't always default (as I eventually worked out this morning)

  • Replace C++ comments with C comments - i.e. "//(something)" with "/*(something) */. Search for "//^(?+^)" and replace with "/*^1 */"
  • Replace "//" (when it's the only thing on a line) with nothing. Search for "%//$" and replace with "".

Add New Comment

Name:
Email:
(Never displayed publically)
Comment:
HTML Tags allowed - <b>bold</b>, <i>italic</i> and <a href="http://...">Links</a>
Type "NoSpam" in Here:

 

<< Back