Expression | Meaning |
---|---|
(Moscow) | Matches Moscow. |
(Moscow)|(Tokyo) | Matches Moscow or Tokyo. |
\s*;\s* | Matches zero or more spaces followed by a semicolon followed by zero or more spaces. |
\s*;\s+ | Matches zero or more spaces followed by a semicolon followed by one or more spaces. |
\w+ | Matches one or more alphanumeric characters. |
Search the Web for "regular expression" to find comprehensive information.
/(Moscow)/g
/(moscow)/gi
/(moscow)/i