Wildcard Search Syntax


Home » Support » Index of All Documentation » Wing IDE Reference Manual » Search/Replace »

For wild card searches in the Search tools, the following syntax is used:

* can be used to match any sequence of characters except for line endings. For example, the search string my*value would match anything within a single line of text starting with my and ending with value. Note that * is "greedy" in that myinstancevalue = myothervalue would match as a whole rather than as two matches. To avoid this, use Regex Search instead with .*? instead of *.

? can be used to match any single character except for line endings. For example, my???value would match any string starting with my followed by three characters, and ending with value.

[ and ] can be used to indicate sets of match characters. For example [abcd] matches any one of a, b, c, or d. Also, [a-zA-Z] matches any letter in the range from a to z (inclusive), either lower case or uppercase. Note that case specifications in character ranges will be ignored unless the Case Sensitive option is turned on.

« 5.4. Find Points of UseTable of Contents6. Refactoring »