Bug #73541 [NEW]: Hyphenated Word Unidentified
| From: | amall at actistence dot com | Date: | Wed, 16 Nov 2016 12:01:31 +0000 |
| Subject: | Bug #73541 [NEW]: Hyphenated Word Unidentified | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-205404@lists.php.net to get a copy of this message | ||
From: amall at actistence dot com
Operating system: Linux
PHP version: Irrelevant
Package: *Regular Expressions
Bug Type: Bug
Bug description:Hyphenated Word Unidentified
Description:
------------
Hyphenated word (https://en.oxforddictionaries.com/definition/in-law)
unmatched in word identification.
Test script:
---------------
preg_match("(\w+)", "in-law", $matches);
print_r($matches);
Expected result:
----------------
Array
(
[0] => in-law
)
Actual result:
--------------
Array
(
[0] => in
)
--
Edit bug report at https://bugs.php.net/bug.php?id=73541&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73541&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73541&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73541&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73541&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73541&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73541&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73541&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73541&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73541&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73541&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73541&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73541&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73541&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73541&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73541&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73541&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73541&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73541&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73541&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73541&r=mysqlcfg