This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
# A single capital letter followed by any number (including 0) of lowercase letters. | |
regex = "[A-Z][a-z]*" | |
text = "In 1828, Anyos Jedlik, a Hungarian who invented an early type of electric motor, created a tiny model car powered by his new motor. In 1838, Scotsman Robert Davidson built an electric locomotive that attained a speed of 4 miles per hour (6 km/h)." | |
print(re.findall(regex, text)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
# regex to search for years | |
regex = "\d{4}" | |
text = "In 1828, Anyos Jedlik, a Hungarian who invented an early type of electric motor, created a tiny model car powered by his new motor. In 1838, Scotsman Robert Davidson built an electric locomotive that attained a speed of 4 miles per hour (6 km/h)." | |
print(re.findall(regex, text)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
# regex to match Washington D.C phone numbers | |
regex = r"\b202\-\d{3}\-\d{4}" | |
file = open("phone_numbers.txt", "r") | |
phonenumbers = file.read() | |
print(re.findall(regex, phonenumbers)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
202-765-4321 | |
202-202-2020 | |
408-747-3535 | |
804-202-2020 | |
621-123-2342 | |
847-985-1231 | |
758-128-9345 | |
589-980-2435 | |
202-984-4559 | |
220-213-5874 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Evaluation is a systematic determination of a subject's merit, worth and significance, using criteria governed by a set of standards. | |
Evaluation definition, an act or instance of evaluating or appraising. See more. | |
Evaluate definition, to determine or set the value or amount of; appraise: to evaluate property. See more. | |
Definition of evaluation: Management: Rigorous analysis of completed or ongoing activities that determine or support management accountability, effectiveness... | |
The making of a judgement about the amount, number, or value of something; assessment. 'the evaluation of each method'. count noun 'an initial evaluation of ... | |
Evaluation is the systematic assessment of the worth or merit of some object. This definition is hardly perfect. There are many types of evaluations that do not necessarily result in an assessment of worth or merit -- descriptive studies, implementation analyses, and formative evaluations, to name a few. | |
There are many definitions of evaluation in the literature and websites. F |