Skip to content

Regular expression string matching feels backwards #103

@kaidesu

Description

@kaidesu

Finding matches within a string currently feels backwards:

Ghost (1.0-beta.1)
Press Ctrl + C to exit

>> pattern = "i need (.*)"
>> pattern.find("I need coffee".toLowerCase())
coffee

I think this should be the other way around:

"I need coffee".find(pattern)

Metadata

Metadata

Assignees

No one assigned

    Labels

    changeChange an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions