From Exercise One
Find the
- Number of instances of carrier
- Number of instances of Carrier
- Number of instances of carrier regardless of case
- Number of instances where a four digit number (e.g. 1960) is at the end of a sentence denoted by a period
- Using the following regex
\b[A-Z]{2,3}\b
How accurate do you feel this pattern matches two and three letter abbreviations?
Answers
Answers to questions on this page
From Exercise Two
- What does
honesty?
match?
- the word “honesty”
- “honest” or “honesty”
- the word “honest” at the end of a question with a “?” punctuation mark
- all of the above
- none of the above
From Exercise Three
- Reformat the names in the following format:
Last Name: <lastname>
-------First Name<tab><firstname>
hints:
new line = \n
tab = \t
For Example:
Last Name: Dixon
——-First Name Odetta
From Exercise Four
- Is there a hashtag that begins with a year? (e.g. 2016)
- Is there a hashtag that begins with any year?
- What is the complete hashtag?