

Regex come in many flavor or data engines (syntax and properties supported by particular regex engine). Txt is used as string literal and matches exact txt word after dot i.e to find text files in file manager So to find dot in string, escape character is used i.e backslash(), which matches single dot It is used to match file name which can be any number of charactersĭot has special meaning in regex.

Matches any single character(defined by first dot above) zero or more times. *\.txt Patternįirst dot (.) matches any single character (excluding Line break) txt to find all text files in a file manager. You are probably familiar with wildcard notations such as. You can think of regular expressions as wildcards on steroids. A regular expression (regex or regexp for short) is a special text string for describing a search pattern.
