Claude Schneegans wrote:

>>I find two things helps immensely with RegExs:
> 
>>1) Break them down into pieces and test the pieces first.  Even with only
>>moderately complex expressions this helps tremendously.
> 
>>2) Have a good reference for the implementation you're using handy.  If you
>>meet somebody that claims the ability to do complex RegEx with no reference
>>they're either lying or mutants (or Mike D).  ;^)

Ah, but a regex with references (in the search string) is not a regex
(that is, a type-3 language on Chomsky's hierarchy[1]), but what I like
to call an Irregular Expression (or irregex, for short), which is a
lower type language masquarading as a type-3 one.

Not that they're not terribly useful, that is... ;-)

K.

[1] 
http://www.augustana.ca/~mohrj/courses/common/csc370/lecture_notes/chomsky.html

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199544
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to