mxTextTools

Mike Fletcher mfletch at tpresence.com
Sat Jun 10 02:11:06 EDT 2000


sets -> [a-zA-Z] in regex/bnf concepts, that is, match any element in the
set

	AllInSet ( "test" ) in "setrmgeneric" --> 3 
	# matches s,e,t from the set of allowed characters

sWordStart -> passes if there are some number of characters (including zero
characters), before the start of the word for which we are searching.

	sWordStart ( "test" ) in "esttest" --> 3
	sWordStart ( "test" ) in "test" --> 0
	WordStart ( "test" ) in "esttest" --> 3
	WordStart ( "test" ) in "test" --> FAIL

Hope this helps,
Mike


-----Original Message-----
From: Stephen Hansen [mailto:stephen at cerebralmaelstrom.com]
Sent: Saturday, June 10, 2000 1:57 AM
To: python-list at python.org
Subject: mxTextTools


Okay, i'm learning mxTextTools on top of the dozen other things i'm doing at
once, at the moment, and have two questions:

With the commands that deal with 'sets', i'm assuming they're talking about
sets returned via the 'set()' function and its similar friends? But what
exactly IS a character set? Why use one instead of a string?

Secondly, 'sWordStart' -- I don't get the description of what it does. It
says it uses a Search Object to perform the required action, which is
fater.. but zero matching characters are allowed.. So, it only passes if
there is NOT a match?

Thanks

--S


-- 
http://www.python.org/mailman/listinfo/python-list




More information about the Python-list mailing list