note 129425 added to regexp.reference.delimiters
| From: | tuncdan.ozdemir.peng@gmail.com | Date: | Tue, 23 Apr 2024 00:59:28 +0000 |
| Subject: | note 129425 added to regexp.reference.delimiters | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-221304@lists.php.net to get a copy of this message | ||
I recommended
~ for the delimiter as it is very rarely found in a pattern and looks
slim which makes the pattern more readable, especially with the flags at the end:
$regex = '~^https?://.*$~im';
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.13.131 (proxied: 24.222.210.90)
----
Manual Page -- https://php.net/manual/en/regexp.reference.delimiters.php
Edit -- https://main.php.net/note/edit/129425
Del: integrated -- https://main.php.net/note/delete/129425/integrated
Del: useless -- https://main.php.net/note/delete/129425/useless
Del: bad code -- https://main.php.net/note/delete/129425/bad+code
Del: spam -- https://main.php.net/note/delete/129425/spam
Del: non-english -- https://main.php.net/note/delete/129425/non-english
Del: in docs -- https://main.php.net/note/delete/129425/in+docs
Del: other reasons-- https://main.php.net/note/delete/129425
Reject -- https://main.php.net/note/reject/129425
Search -- https://main.php.net/manage/user-notes.php