Skip to content

PHP matches where yours doesn't: /[가-힣]/ matches "à proprement parler" #284

@wrmike1

Description

@wrmike1

Your tool looks quite good, and that is why I need to report what I consider to be an error.

I needed to match Korean characters, so I created a range.

In PHP, it stupidly matches:
pattern: /[가-힣]/
string: à proprement parler

It matches the à!
Yes, it is that stupid.

Your page's behavior:
Your example page doesn't make that match.

Expected behavior:
You make the same match as PHP.

What PHP needs for that to work correctly is the "u"
pattern: /[가-힣]/u
string: à proprement parler

=>No match, as it should be.

I suggest updating your page to match it.

I would include a link to my use of your page, but I can't figure out how to do it. (I want to click on "share this regex test" but can't find it.)

Cheers.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions