Skip to main content
Log in

Synchronized regular expressions

  • Original article
  • Published:
Acta Informatica Aims and scope Submit manuscript

Abstract.

Text manipulation is one of the most common tasks for everyone using a computer. The increasing number of textual information in electronic format that every computer user collects everyday also increases the need of more powerful tools to interact with texts. Indeed, much work has been done to provide simple and versatile tools that can be useful for the most common text manipulation tasks. Regular Expressions (RE), introduced by Kleene, are well known in the formal language theory. RE have been extended in various ways, depending on the application of interest. In almost all the implementations of RE search algorithms (e.g. the egrep [15] UNIX command, or the Perl [20] language pattern matching constructs) we find backreferences, i.e. expressions that make reference to the string matched by a previous subexpression. Generally speaking, it seems that all kinds of synchronizations between subexpressions in a RE can be very useful when interacting with texts. In this paper we introduce the Synchronized Regular Expressions (SRE) as an extension of the Regular Expressions. We use SRE to present a formal study of the already known backreferences extension, and of a new extension proposed by us, which we call the synchronized exponents. Moreover, since we are dealing with formalisms that should have a practical utility and be used in real applications, we have the problem of how to present SRE to the final users. Therefore, in this paper we also propose a user-friendly syntax for SRE to be used in implementations of SRE-powered search algorithms.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

Author information

Authors and Affiliations

Authors

Additional information

Received: 30 July 2001 / 16 May 2002

This research has been partially supported by MURST project TOSCA.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Della Penna, G., Intrigila, B., Tronci, E. et al. Synchronized regular expressions. Acta Informatica 39, 31–70 (2003). https://doi.org/10.1007/s00236-002-0099-y

Download citation

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00236-002-0099-y

Keywords

Navigation