Jump to content

ken678

New Members
  • Posts

    2
  • Joined

  • Last visited

ken678's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thank you for the explanation requinix. I will rework the expression but I'm working on legacy code and the expression is significantly more complicated than the above so just hoping not to break anything!
  2. I'm hoping someone might be able to explain to me why the following code produces different results in PHP 7.4.11 and 7.4.12. This is a simplified version of a real example from a project I'm working on. I can see that 7.4.12 moved to PCRE 10.35 but can't see any obvious reason why the below would behave differently. <?php preg_match('/([^\.]|^)\s*a/', "a", $matches); var_dump($matches); https://onlinephp.io/c/b56ca
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.