Skip to content

About

Collection of regular expressions for matching strings

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

24 Commits

Folders and files

Repository files navigation

Regex Collection

Collection of regular expressions for matching strings

Introduction

This repository is to store commonly used regular expressions for matching specific strings. They are made to be as strict as possible, so they might require some adjustments before use.

Testing

Testing is done with Python built-in regular expression library re. The testing engine is pytest. The testing engine uses custom scripts that work in the following format:

def test_NAME():
    simulate(
        [ 'MATCH_1', 'MATCH_2', '...' ],
        [ 'NOMATCH_1', 'NOMATCH_2', '...' ],
    )

Contributing

  1. Add your regular expression to the expressions folder
  2. Add a test with a couple of matching, and non-matching cases

Sources

About

Collection of regular expressions for matching strings

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages