Schnee (schnee) wrote,

If you can't do it right, don't do it at all

One thing I really hate? Programs (of any kind, although I'm mostly looking at text editors etc.) who implement regex search (and possibly replace), but fail to do so in a correct and/or complete manner.

For instance, suppose you want to strip out certain HTML tags from a document, say (just for the sake of the argument) <span style="...">. How would you do it if neither "<span style=".*?">" nor "<span style="[^"]">" nor any variation thereof are correctly interpreted by the editor's regex engine? Sheesh.

I'm not expecting Perl 5 match-time code evaluation or other such things, but non-greedy stars and negated character classes are pretty basic features.
Tags: rants, regular expressions, software
  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded