Li-Xiao Zheng, Shuai Ma, Zu-Xi Chen, Xiang-Yu Luo. Ensuring the Correctness of Regular Expressions: A Review[J]. Machine Intelligence Research, 2021, 18(4): 521-535. DOI: 10.1007/s11633-021-1301-4
Citation: Li-Xiao Zheng, Shuai Ma, Zu-Xi Chen, Xiang-Yu Luo. Ensuring the Correctness of Regular Expressions: A Review[J]. Machine Intelligence Research, 2021, 18(4): 521-535. DOI: 10.1007/s11633-021-1301-4

Ensuring the Correctness of Regular Expressions: A Review

  • Regular expressions are widely used within and even outside of computer science due to their expressiveness and flexibility. However, regular expressions have a quite compact and rather tolerant syntax that makes them hard to understand, hard to compose, and error-prone. Faulty regular expressions may cause failures of the applications that use them. Therefore, ensuring the correctness of regular expressions is a vital prerequisite for their use in practical applications. The importance and necessity of ensuring correct definitions of regular expressions have attracted extensive attention from researchers and practitioners, especially in recent years. In this study, we provide a review of the recent works for ensuring the correct usage of regular expressions. We classify those works into different categories, including the empirical study, test string generation, automatic synthesis and learning, static checking and verification, visual representation and explanation, and repairing. For each category, we review the main results, compare different approaches, and discuss their advantages and disadvantages. We also discuss some potential future research directions.
  • loading

Catalog

    /

    DownLoad:  Full-Size Img  PowerPoint
    Return
    Return