|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2014-02-13 16:29 UTC] jbeecher at oneendlessloop dot com
Description:
------------
Valid regexp: /[a-z0-9]{1,25}\s+([0-9]{3,12})\s+[.]*(\-\c)/i
Test script:
---------------
Example data (to grep against):
blinky 5321 1 0 Feb07 ? 00:03:41 php ./di-sup.php -c 1 -i /ftpacct/max/pub/MAX -p /ftpacct/max/pub/MAX -n mixlplick -l /home/blinky/M006615/custlogs/MAX -e reports@maxic-reports.com -x rubber1333!
Expected result:
----------------
preg_match() should return an array of matched values.
Actual result:
--------------
preg_match() returned false (not zero, but boolean false) i.e. there was an error.
The error message was, "preg_match(): Compilation failed: missing ) at offset 43"
Which is incorrect.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 20:00:01 2025 UTC |
To add... normally if I'm going to specify any control character, I would use \x{5B} where '5B' is whatever the hex code is I wish to check for. Please confirm that '\c' is also for control characters, reference a source-document, and provide an example.