s c h e m e w i k i . o r g

/ CookbookBrainStorm? / Trash.RegExpRecipes

This Web


WebHome 
WebChanges 
WebTopicList 
WebStatistics 

All Webs


Chicken
Cookbook
Erlang
Know
Main
Plugins
Sandbox
Scm
TWiki
Trash  

Schematics


Schematics Home
TWiki Shorthand

Offsite Links


Schemers.org
Lambda the Ultimate
twiki.org

Regular Expressions

Lisps in general are sort of famous for looking down on Regular Expressions. Other languages that lack Scheme's powerful pattern matching tend to fall back on regular expressions to provide some of that capability; one could argue that Regular Expressions have been badly overused. For example, any sort of pattern matching that involves stack-like matching (matching parentheses, quoted strings, etc.) is usually very difficult using regular expressions.
Some people, when confronted with a problem, think "I know, Iíll use regular expressions." Now they have two problems. -- Jamie Zawinski
Still, Regular Expressions are unbeatable for a lot of text processing tasks. MzScheme? provides built in regular expressions using the Unix egrep syntax. The pregexp.ss library also provides "Perl-like" regular expressions, which makes avalilable pretty much all of the Perl regex syntax.

Recipes

TOC: Cannot find topic "Trash.RegExpSplitInclusive"

References

Regular Expressions - Chapter 10 in the MzScheme documentation

-- JensAxelSoegaard - 24 Apr 2004

-- GordonWeakliem - 28 Apr 2004



CookbookForm?
TopicType?: Chapter
ParentTopic?: TOC
Other Parents:
Next Topic:

 
 
© 2004 by the contributing authors. / You are Main.guest