PageRenderTime 26ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/zend/good/ext/pcre/tests/dollar_endonly.php

http://github.com/facebook/hiphop-php
PHP | 12 lines | 10 code | 2 blank | 0 comment | 0 complexity | ce6b2937c23ff20f912c67edbdd9ace4 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
  1. <?hh
  2. <<__EntryPoint>> function main(): void {
  3. $m = null;
  4. var_dump(preg_match_all_with_matches('/^\S+.+$/', "aeiou\n", inout $m));
  5. var_dump($m);
  6. var_dump(preg_match_all_with_matches('/^\S+.+$/D', "aeiou\n", inout $m));
  7. var_dump($m);
  8. var_dump(preg_match_all_with_matches('/^\S+\s$/D', "aeiou\n", inout $m));
  9. var_dump($m);
  10. }