2 ms·
If multiple things use the same regex, which one should it be close to? Or do you propose duplicating it?
by what 4mo ago
If multiple things use the same regex, which one should it be close to? Or do you propose duplicating it?
- preg_match 4mo agoMy go-to is actually wrapping it in a lambda. The reason being you get nice syntax highlighting you don’t get with string literals! (In PHPStorm the string part of preg_match gets regex highlighting)