in PHP by (12.3k points)
0 like 0 dislike

Me need in string find all regular expression pattern variables on PHP? How do it? Do use preg_match? How I can to get regular expression variables in PHP?

php get regex variable

1 Answer

0 like 0 dislike
by (12.3k points)

Use preg_match_all function like it:

$result = preg_match_all($pattern, $subject, $matches);

Your answer

Try to answer the question as detailed as possible.
Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.