Skip to content

Regex matcher? #16

@davified

Description

@davified

Hi there, thanks for the great work on this library!

I was wondering if there's a way to do regex matching with the existing API?

# existing API
assert_that("1975-09-24", contains_string('1975-09-24'))

# is there a matcher that allows something like this?
assert_that("hello", matches_regex(r'[\d]{4}-[\d]{2}-[\d]{2}'))

Thanks!

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