Recent content by adtither

  1. A

    Perl RE /c.*?t/ matches what?

    This is from a past exam paper that i don't have the answers to. I just want to make sure i chose the correct answer. The perl RE /c.*?t/ matches which sequence of characters in the string 'the cat sat on the mat'? a. 'cat' b. 'cat sat' c. 'cat sat on the mat' d. 'cat sat on t' I went with A...
  2. A

    Perl Regular Expressions Question?

    This is from a past exam paper that i don't have the answers to. I just want to make sure i chose the correct answer. To remove duplicate white-space characters use the perl RE: a. /\s{2,}//gi b. s/\s{2,}//i c. s/\s{2,*}//gi d. s/\s{2,}//gi I went for C but i don't fully understand RE's Any...
Back
Top