HackerRank-Python/Regex(14)
-
Prepare > Regex > Repetitions > Matching Ending Items
Matching Ending Items | HackerRank Match the end of the string using the $ boundary matcher. www.hackerrank.com 문제 Task Write a RegEx to match a test string, S, under the following conditions: S should consist of only lowercase and uppercase letters (no numbers or symbols). S should end in s. => S는 대소문자로만 이뤄져있고, s로 끝난다 코드 Regex_Pattern = r'^[a-zA-Z]*s$'# Do not delete 'r'. import re print(str(bo..
2023.11.08 -
Prepare > Regex > Repetitions > Matching One Or More Repetitions
Matching One Or More Repetitions | HackerRank Match zero or more repetitions of character/character class/group with the + symbol. www.hackerrank.com 문제 Task You have a test string S. Your task is to write a regex that will match S using the following conditions: S should begin with 1 or more digits. After that, S should have 1 or more uppercase letters. S should end with 1 or more lowercase let..
2023.11.07 -
Prepare > Regex > Repetitions > Matching Zero Or More Repetitions
Matching Zero Or More Repetitions | HackerRank Match zero or more repetitions of character/character class/group using the * symbol in regex. www.hackerrank.com 문제 Task You have a test string S. Your task is to write a regex that will match S using the following conditions: should begin with 2 or more digits. After that, S should have 0 or more lowercase letters. S should end with 0 or more uppe..
2023.11.06 -
Prepare > Regex > Repetitions > Matching Zero Or More Repetitions
Matching Zero Or More Repetitions | HackerRank Match zero or more repetitions of character/character class/group using the * symbol in regex. www.hackerrank.com 문제 Task You have a test string S. Your task is to write a regex that will match S using the following conditions: S should begin with 1 or 2 digits. After that, S should have 3 or more letters (both lowercase and uppercase). Then S shoul..
2023.10.30 -
Prepare > Regex > Repetitions > Matching {x} Repetitions
Matching {x} Repetitions | HackerRank Match exactly x repetitions using the tool {x}. www.hackerrank.com 문제 Task You have a test string S. Your task is to write a regex that will match using the following conditions: S must be of length equal to 45. The first 40 characters should consist of letters(both lowercase and uppercase), or of even digits. The last 5 characters should consist of odd digi..
2023.10.28 -
Prepare > Regex > Character Class > Matching Character Ranges
Matching Character Ranges | HackerRank Write a RegEx matching a range of characters. www.hackerrank.com 문제 Task Write a RegEx that will match a string satisfying the following conditions: The string's length is >= 5. The first character must be a lowercase English alphabetic character. The second character must be a positive digit. Note that we consider zero to be neither positive nor negative. ..
2023.10.27 -
Prepare > Regex > Character Class > Excluding Specific Characters
Excluding Specific Characters | HackerRank Use the [^] character class to exclude specific characters. www.hackerrank.com 문제 Task You have a test string S. Your task is to write a regex that will match with the following conditions: S must be of length 6. First character should not be a digit (1,2,3,4,5,6,7,8,9 or 0). Second character should not be a lowercase vowel (a,i,e,u or o). Third charact..
2023.10.26