https://github.com/mainakrepositor/hackerrank-regex-solutions
https://github.com/mainakrepositor/hackerrank-regex-solutions
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mainakrepositor/hackerrank-regex-solutions
- Owner: MainakRepositor
- Created: 2021-06-23T09:52:14.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-03T05:46:57.000Z (over 4 years ago)
- Last Synced: 2025-04-07T00:35:45.314Z (about 1 year ago)
- Language: Python
- Size: 38.1 KB
- Stars: 23
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HackerRank-Regex-Solutions

CHEATSHEET :
^ Matches the beginning of a line
$ Matches the end of the line
. Matches any character
\s Matches whitespace
\S Matches any non-whitespace character
* Repeats a character zero or more times
*? Repeats a character zero or more times (non-greedy)
+ Repeats a character one or more times
+? Repeats a character one or more times (non-greedy)
[aeiou] Matches a single character in the listed set
[^XYZ] Matches a single character not in the listed set
[a-z0-9] The set of characters can include a range
( Indicates where string extraction is to start
) Indicates where string extraction is to end