Title: Regular expressions...
I've got down to the business of rewriting all my old scripts using regular expressions. In particular those for chopping, and chunking HTML and similar markups.

Does someone have a source for what support Metacard offers for regular expressions. The matchText function does not seem to support some of these? Working from the following source on the web (http://www.antipope.org/charlie/nonfiction/tkperl/ptk-3.html), I found the following:

Suppose we are unsure whether our target string may be capitalized. Regular expressions give us a couple of ways to see if our potatoes are important:

        if ($a =~ /[Pp]otato/) {

        if ($a =~ /potato/i) {

      In the first form, we see [Pp]. This is a character set: a special pattern that matches one character from among its members (in this instance, ``P'' and ``p''). Effectively, /[Pp]otato/ means ``match a single 'p' or 'P', followed by [o][t][a][t][o]''.

Now I can't get "/i" to work, and I can't use [ "] to find either a space or a quote. Anyway, does anyone know of a source where I can find a list of handy HT/XML regular expressions? That work with MetaCard?

Reply via email to