RegExp reminder

I was just reminded about this small thing, which is so easy to forget – regular expressions that have markers of line start (^) and/or line end($) are so much faster than those regexps that don’t have these markers. The thing is that with line start/end marker regexp engine needs to make only one match/substution, whereas when there is no such markers, it has to repeat the match/substitution operation at every character of the string.

In practice, it’s unbelievable how much difference this can make. Especially when using complex regular expressions over large data sets.

P.S.: I understand that it is not always possible to use these markers, but I think that they can be used much more often than they are. Everywhere.

The Dukes of Hazzard

The Dukes of Hazzard (2005)Recently I said that I had a bunch of good movies to watch. Well, I do. But bad movies have this tendency of getting in between. “The Dukes of Hazzard” managed to succeed in setting me off of a good movie.

Directed by: Jay Chandrasekhar
Genres: Action, Adventure, Comedy
Cast: Johnny Knoxville, Elton LeBlanc, Seann William Scott, Alice Greczyn, Steve Lemme, Michael Weston, Mitch Braswell, Michael Roof, Jessica Simpson, Rusty Tennant, Dolan Wilson, James Roday, Heather Hemmens, David Leitch, A.J. Foyt IV
IMDB raintg: 4.6
My rating: 4.0 [rate 4.0]

Continue reading The Dukes of Hazzard

Daily del.icio.us bookmarks

Shared bookmarks for del.icio.us user tvset on 2006-02-20