Current Trends in Information Technology
Rule based Normalization of Regular Expression
Abstract
The regular expression is a specific pattern that provides the concise and flexible way to match strings of text. It is useful in the data validation, internet search engine, production of the syntax highlighting system, extract a substring from a string, etc. In this paper, the concept of un-normalized and normalized regular expression is discussed. An un-normalized regular expression(r) can be converted into normalized regular expression (r') having the property lr'l < lrl. A methodology has been proposed for the conversion of an un-normalized regular expression to normalized regular expression. The proposed methodology has been implemented in the Java language. Keywords: Methodology, regular expression, Java languageReferences (9)
- P. Linz, An Introduction to formal Languages and Automata , New Delhi: Narosa Publication House 2003.
- Oracle, “The Java Tutorials,” [Online]. Available at http://docs.oracle.com/javase/ tutorial/essential/regex/intro.html. [Accessed 20 January 2013].
- Oracle, “The Java Tutorials,” [Online]. Available at http://docs.oracle.com/javase/ tutorial/essential/regex/test_harness.html. [Accessed 20 January 2013].
- M. Almeida, N. Moreira and R. Reis, “Testing the equivalence of regular expressions,” DCC-FC & LIACC, Universidade do Porto, vol. 1.1, no. DCC- 2007-07, 2007.
- H. Chan, “Finite Automata of Expressions in the Case of star normal form and one Un-ambiguity,” State key Laboratry of Computer science, Institute of software, no. ISCAS-LCS-10-11, June 2010.
- H. Gruber, J. Lee and J. Shallit, “Enumerating Regular expressio ns and their language,” Mathematics Subject Classification , no. 68Q45, 2010.
- J. Champarnaud, F. Ouardi and D. Ziadi, “Normalized Expressions and Finite Automata,” LITIS, University of Rouen, 76000 Saint-Etienne du Rouvray France .
- G. Jiraskova and T. Maso pust, “Complexity in union -free Regular Languages,” Interntional Journal of foundations of computer science, no. 68Q45, 68Q19, 2011.
- M. Sipser, Introduction To The Theory Of Computation, Boston, Massachusetts: Thomson Course Technology 2006.