Skip to content

Using fulmatch for regex matching. #182

@pranjaldoshi96

Description

@pranjaldoshi96

Proposed Functionality

For regex matching, we are using re.match which only checks if the pattern/regex is present at the beginning of the string. But if that is the case then the name pattern sounds ambiguous cause it looks like we are defining a pattern and the input string should follow that pattern.

regex = '.*@domain.com'
pattern1 = '[email protected]' # this should match
pattern2 = '[email protected]'  #This should not match

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions