Skip to content

Commit f440cf3

Browse files
authored
Merge pull request #174 from iandunn/document-regex-tokens
Document that individual text columns are searched.
2 parents 0cb88b9 + df80bde commit f440cf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DB_Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ public function prefix() {
10371037
/**
10381038
* Finds a string in the database.
10391039
*
1040-
* Searches through all or a selection of database tables for a given string, Outputs colorized references to the string.
1040+
* Searches through all of the text columns in a selection of database tables for a given string, Outputs colorized references to the string.
10411041
*
10421042
* Defaults to searching through all tables registered to $wpdb. On multisite, this default is limited to the tables for the current site.
10431043
*
@@ -1071,7 +1071,7 @@ public function prefix() {
10711071
* ---
10721072
*
10731073
* [--regex]
1074-
* : Runs the search as a regular expression (without delimiters). The search becomes case-sensitive (i.e. no PCRE flags are added). Delimiters must be escaped if they occur in the expression.
1074+
* : Runs the search as a regular expression (without delimiters). The search becomes case-sensitive (i.e. no PCRE flags are added). Delimiters must be escaped if they occur in the expression. Because the search is run on individual columns, you can use the `^` and `$` tokens to mark the start and end of a match, respectively.
10751075
*
10761076
* [--regex-flags=<regex-flags>]
10771077
* : Pass PCRE modifiers to the regex search (e.g. 'i' for case-insensitivity).

0 commit comments

Comments
 (0)