The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 3 Days Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
Construct a regular expression that matches each of these (one regular expression per item). You do not need to include the contents of an entire script for each of these; rather, include just the line with the regular expression. For example, if you are asked to match "cat or hat", you could simply answer: r”(c|h)at”
a. at least one b followed by any number (zero or more) of c's b. any number (one or more) of literal backslashes followed by any number (zero or more) of literal
asterisks c. three consecutive copies of whatever text is contained in the whatever variable d. any five characters (they don't have to be the same, and this includes newline as a valid character
option) e. [Challenging!] the same word written two or more times in a row (with possible varying intervening
whitespace), where "word" is defined as a non-empty sequence of non-whitespace characters. No points off if you don't get this one, I'm just looking to be impressed.
----------- He-----------llo----------- Si-----------r/M-----------ada-----------m -----------Tha-----------nk -----------you----------- fo-----------r y-----------our----------- in-----------ter-----------est----------- an-----------d b-----------uyi-----------ng -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------. P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll -----------be -----------qui-----------ckl-----------y