php / php/doc-en

Preg split not splitting some unicodes

Open
#665 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement Extension: pcre
Dominant language
XML
Stars
596
Forks
890
Avg merge
1d 15h
Merged PRs (30d)
55

Description

From manual page: https://php.net/function.preg-split


These json encoded unicode characters in a string not splitted by the method
\ud876\ude54
preg_split('//u', $str, null, PREG_SPLIT_NO_EMPTY);

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the preg_split manual page linked in the issue and the reported preg_split('//u', $str, null, PREG_SPLIT_NO_EMPTY) example. Reproduce the behavior with the JSON-encoded Unicode sequence, then determine whether the manual page needs a correction or clarification; done means the documented behavior matches the verified result.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.