Homepage / Notes / Computer Science / Regex
Symbol | Description |
---|---|
. | replaces any character |
^ | matches start of string |
$ | matches end of string |
* | matches up zero or more times the preceding character |
\ | Represent special characters |
() | Groups regular expressions |
? | Matches up exactly one character |
"Do you like cats?" =~ /like/
7