begin quoting Lan Barnes as of Wed, Apr 18, 2007 at 10:06:48AM -0700: > On Tue, April 17, 2007 10:42 pm, Ralph Shumaker wrote: > > :-) Pehaps, but I haven't used regex much anywhere besides vim. > > No perl? A shame. Everybody loves perl ... it's fun ;-)
Yeah, but I need to reach for a book before I do too much in perl. > > If I get to a point where I would use it a *lot*, then I may look > > into that. > > I think of regexs as incredibly compact code. If you can write a good > regex, especially in current scripting languages, you can do a lot of work > in one or two lines of code. Did anyone mention that there is a learning > curve ...? ;-) Regular expressions are a compact (most of the time) expression of a "regular language" -- and thus isomorphic to deterministic finite automata. It's an interesting exercise to take a small regex and transform it into the corresponding DFA and into the corresponding grammar. -- Well, maybe it's only interesting to me. Stewart Stremler -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
