Writing a regular e xpression that exactly captures a set of desired strings is difficult, since regular expressions provide a compact syntax that makes it difficult to easily understand their meaning. Testing is widely used to validate regular expressions. Indeed, although a developer could have problems in writing the correct regular expression, (s)he can easily assess whether a string should be accepted or not. Starting from this observation, we propose an iterative mutation-based process that is able to test and repair a faulty regular expression. The approach consists in generating strings S that distinguish a regular expression r from its mutants, asking the user to assess the correct evaluation of S, and possibly substituting r with a mutant r′ that evaluates S more correctly than r; we propose four variants of the approach which differ in the policy they employ to judge whether r′ is better than r. Experiments show that the proposed approach is able to actually repair faulty regular expressions with a reasonable user’s effort.

(2018). Interactive testing and repairing of regular expressions . Retrieved from http://hdl.handle.net/10446/131429

Interactive testing and repairing of regular expressions

Gargantini, Angelo;
2018-01-01

Abstract

Writing a regular e xpression that exactly captures a set of desired strings is difficult, since regular expressions provide a compact syntax that makes it difficult to easily understand their meaning. Testing is widely used to validate regular expressions. Indeed, although a developer could have problems in writing the correct regular expression, (s)he can easily assess whether a string should be accepted or not. Starting from this observation, we propose an iterative mutation-based process that is able to test and repair a faulty regular expression. The approach consists in generating strings S that distinguish a regular expression r from its mutants, asking the user to assess the correct evaluation of S, and possibly substituting r with a mutant r′ that evaluates S more correctly than r; we propose four variants of the approach which differ in the policy they employ to judge whether r′ is better than r. Experiments show that the proposed approach is able to actually repair faulty regular expressions with a reasonable user’s effort.
angelo.gargantini@unibg.it
2018
Inglese
Testing Software and Systems. 30th IFIP WG 6.1 International Conference, ICTSS 2018, Cádiz, Spain, October 1-3, 2018, Proceedings
Medina-Bulo, I.; Merayo, M.; Hierons, R.
978-3-319-99927-2
11146
1
16
online
Switzerland
Cham
Springer
ICTSS 2018: 30th IFIP International Conference on Testing Software and Systems, Cadiz, Spain, 1-3 October 2018
30th
Cadiz (Spain)
1-3 October 2018
Settore ING-INF/05 - Sistemi di Elaborazione delle Informazioni
Theoretical Computer Science; Computer Science
info:eu-repo/semantics/conferenceObject
3
Arcaini, Paolo; Gargantini, Angelo Michele; Riccobene, Elvinia
1.4 Contributi in atti di convegno - Contributions in conference proceedings::1.4.01 Contributi in atti di convegno - Conference presentations
reserved
Non definito
273
(2018). Interactive testing and repairing of regular expressions . Retrieved from http://hdl.handle.net/10446/131429
File allegato/i alla scheda:
File Dimensione del file Formato  
regexRepair_ICTSS2018_cameraReady.pdf

Solo gestori di archivio

Versione: postprint - versione referata/accettata senza referaggio
Licenza: Licenza default Aisberg
Dimensione del file 489.25 kB
Formato Adobe PDF
489.25 kB Adobe PDF   Visualizza/Apri
Pubblicazioni consigliate

Aisberg ©2008 Servizi bibliotecari, Università degli studi di Bergamo | Terms of use/Condizioni di utilizzo

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/10446/131429
Citazioni
  • Scopus 3
  • ???jsp.display-item.citation.isi??? 2
social impact