chapter 8 Flashcards
1
Q
besides \d which stands for a single digit, what else is this called?
A
\d is one of many abbreviations in special code called regular expressions.
2
Q
what does the dot mean when it comes to regular expressions? and how does this relate to findWithinHorizon method?
A
when it comes to regular expressions, a dot stands for any character at all. so findWithinHorizon(“.”, 0) tells the computer to find the next character of any kind that the user types on the keyboard
3
Q
in the method findWithinHorizon(“.”, 0); what does the zero stand for?
A
it means that the method will search will search until the end of the input. so if