Skip to content

Substring matches base? #420

Closed
Closed
@milseman

Description

@milseman

From the forums

    let regex = Regex { OneOrMore(.any) }
    print("abc".wholeMatch(of: regex)!.0) // prints "abc", as expected
    print("abc".suffix(1).wholeMatch(of: regex)!.0) // also prints "abc"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions