Abstract
Regex are used in many programs such as Perl, Awk, Python, egrep, vi, emacs etc. It is known that regex are different from regular expressions. In this paper, we give regex a formal treatment. We make a distinction between regex and extended regex; while regex present regular languages, extended regex present a family of languages larger than regular languages. We prove a pumping lemma for the languages expressed by extended regex. We show that the languages represented by extended regex are incomparable with context-free languages and a proper subset of context-sensitive languages.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
References
N. Chapman, Perl-The Programmer’s Companion, Wiley, Chichester, 1997.
Jeffrey E.F. Friedl Mastering Regular Expressions, O’Reilly & Associates, Inc., Cambridge, 1997.
J.E. Hopcroft and J.D. Ullman, Introduction to Automata Theory, Languages, and Computation, Addison-Wesley, Reading, 1979.
M.E. Lesk, “Lex-a lexical analyzer generator”, Computer Science Technical Report (1975) 39, AT&T Bell Laboratories, Murray Hill, N.J.
S. Yu, “Regular Languages”, in Handbook of Formal Languages, G. Rozenberg and A. Salomaa eds. pps. 41–110, Springer, 1998.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2003 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Câmpeanu, C., Salomaa, K., Yu, S. (2003). Regex and Extended Regex. In: Champarnaud, JM., Maurel, D. (eds) Implementation and Application of Automata. CIAA 2002. Lecture Notes in Computer Science, vol 2608. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-44977-9_7
Download citation
DOI: https://doi.org/10.1007/3-540-44977-9_7
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-40391-3
Online ISBN: 978-3-540-44977-5
eBook Packages: Springer Book Archive