preg_match
preg_match — Perform a regular expression match.Description
preg_match( string $pattern,Searches subject for a match to the regular expression given in pattern.
string $subject,
array &$matches = null,
int $flags = 0,
int $offset = 0 ): int|false
Parameters
Return Values
preg_match() returns 1 if the pattern matches given subject, 0 if it does not, or false if an error occurred.More information about preg_match on official PHP documentation site
preg_match - Popular snippets
- PHP 8.0 / preg_match
last run:
2022-10-05 10:16:04
47
- PHP 8.0 / preg_match preg_replace
last run:
2021-01-12 14:29:49
21
- PHP 8.1 / preg_match print_r
last run:
2023-10-03 08:18:02
20
- PHP 8.1 / base64_decode preg_match_all count str_replace chr hexdec preg_match
last run:
2025-01-08 10:00:44
18
- PHP 8.0 / preg_match print_r
last run:
2021-08-23 20:56:54
18
- PHP 8.1 / preg_match array_filter var_dump
last run:
2025-01-19 06:48:57
16
- PHP 8.0 / implode array_filter preg_match array_map strlen range
last run:
2021-05-02 20:42:52
16
- PHP 8.0 / preg_match
last run:
2021-11-23 10:15:21
15
- PHP 8.1 / preg_match
last run:
2024-07-23 08:04:56
13
- PHP 8.1 / preg_match var_dump
last run:
2023-10-03 07:00:04
13
preg_match - New snippets
-
PHP 7.4 / MySQL 8.0 preg_match date strtotime rtrim
added at:
2025-04-24 08:54:30
2
-
PHP 8.4 / MySQL 8.0 scandir preg_match intval basename time unlink
added at:
2025-04-13 11:42:43
1
-
PHP 8.0 / MariaDB 11.4 preg_match
added at:
2025-04-11 17:16:17
1
-
PHP 8.0 / MariaDB 11.4 preg_match
added at:
2025-04-11 17:16:06
1
-
PHP 8.4 / MySQL 8.0 dechex preg_match hex2bin urldecode ord
added at:
2025-04-11 15:21:28
1
-
PHP 8.4 / MySQL 8.0 dechex preg_match hex2bin urldecode ord fwrite fclose
added at:
2025-04-11 15:20:21
1
-
PHP 8.4 / MySQL 8.0 dechex preg_match hex2bin urldecode ord fwrite fclose
added at:
2025-04-11 15:20:07
1
-
PHP 8.4 / MySQL 8.0 dechex preg_match hex2bin urldecode ord fwrite fclose
added at:
2025-04-11 15:03:03
3
-
PHP 8.4 / MySQL 8.0 dechex preg_match hex2bin urldecode ord fwrite fclose
added at:
2025-04-11 15:02:51
1
-
PHP 8.1 / MariaDB 11.4 json_decode preg_match
added at:
2025-04-04 09:03:51
1