Unix and Linux Discussions Tagged with wildcard |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
10 |
25,189 |
Shell Programming and Scripting |
|
|
|
2 |
9,487 |
Shell Programming and Scripting |
|
|
|
12 |
12,065 |
Shell Programming and Scripting |
|
|
|
15 |
20,619 |
Ubuntu |
|
|
|
3 |
3,763 |
Shell Programming and Scripting |
|
|
|
3 |
2,531 |
Shell Programming and Scripting |
|
|
|
5 |
4,489 |
Shell Programming and Scripting |
|
|
|
1 |
3,093 |
Shell Programming and Scripting |
|
|
|
7 |
6,787 |
Shell Programming and Scripting |
|
|
|
6 |
3,118 |
Shell Programming and Scripting |
|
|
|
4 |
4,451 |
Shell Programming and Scripting |
|
|
|
3 |
10,427 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
19,153 |
Shell Programming and Scripting |
|
|
|
11 |
15,878 |
Shell Programming and Scripting |
|
|
|
1 |
3,250 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
6,623 |
Shell Programming and Scripting |
|
|
|
4 |
9,593 |
Shell Programming and Scripting |
|
|
|
3 |
11,796 |
Shell Programming and Scripting |
|
|
|
3 |
42,978 |
Shell Programming and Scripting |
|
|
|
3 |
7,390 |
Shell Programming and Scripting |
|
|
|
3 |
6,158 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
3,858 |
Shell Programming and Scripting |
|
|
|
6 |
19,822 |
Shell Programming and Scripting |
|
|
|
2 |
3,343 |
Shell Programming and Scripting |
|
|
|
1 |
6,433 |
Shell Programming and Scripting |
|
|
|
3 |
45,458 |
Shell Programming and Scripting |
|
|
|
4 |
10,599 |
Shell Programming and Scripting |
|
|
|
1 |
2,370 |
Shell Programming and Scripting |
|
|
|
1 |
2,811 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,743 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
160,739 |
Shell Programming and Scripting |
|
|
|
6 |
10,072 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
17,991 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
11,329 |
Programming |
|
|
|
2 |
23,238 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
10,353 |
UNIX for Dummies Questions & Answers |
MYSQLND_MS_MATCH_WILD(3) 1 MYSQLND_MS_MATCH_WILD(3)
mysqlnd_ms_match_wild - Finds whether a table name matches a wildcard pattern or not
SYNOPSIS
bool mysqlnd_ms_match_wild (string $table_name, string $wildcard)
DESCRIPTION
Finds whether a table name matches a wildcard pattern or not.
This function is not of much practical relevance with PECL mysqlnd_ms 1.1.0 because the plugin does not support MySQL replication table
filtering yet.
PARAMETERS
o $table_name
- The table name to check if it is matched by the wildcard.
o $wildcard
- The wildcard pattern to check against the table name. The wildcard pattern supports the same placeholders as MySQL replication
filters do. MySQL replication filters can be configured by using the MySQL Server configuration options --replicate-wild-do-table
and --replicate-wild-do-db. Please, consult the MySQL Reference Manual to learn more about this MySQL Server feature. The sup-
ported placeholders are:
o % - zero or more literals
o _ - one literal
Placeholders can be escaped using .
RETURN VALUES
Returns TRUE table_name is matched by wildcard. Otherwise, returns FALSE
EXAMPLES
Example #1
mysqlnd_ms_match_wild(3) example
<?php
var_dump(mysqlnd_ms_match_wild("schema_name.table_name", "schema%"));
var_dump(mysqlnd_ms_match_wild("abc", "_"));
var_dump(mysqlnd_ms_match_wild("table1", "table_"));
var_dump(mysqlnd_ms_match_wild("asia_customers", "%customers"));
var_dump(mysqlnd_ms_match_wild("funny%table","funny\%table"));
var_dump(mysqlnd_ms_match_wild("funnytable", "funny%table"));
?>
The above example will output:
bool(true)
bool(false)
bool(true)
bool(true)
bool(true)
bool(true)
PHP Documentation Group MYSQLND_MS_MATCH_WILD(3)