1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Random Linux+ Question #26

Discussion in 'Linux+' started by tripwire45, Jul 12, 2005.

  1. tripwire45
    Honorary Member

    tripwire45 Zettabyte Poster

    13,493
    179
    287
    Regular Expressions are strings of special characters used in a specific syntax in search and text manipulation operations and are used by a number of text editors and utilities. You want to search for the URL www.certforums.co.uk using regular expressions and you do not what the shell to interpret the dots (.) causing the search to fail. Of the selections below, which one will most likely result in a successful search? Choose only one answer.

    1. www?.certforums?.co?.uk
    2. www|.certforums|.co|.uk
    3. www\.certforums\.co\.uk
    4. www/.certforums/.co/.uk
    5. www$.certforums$.co$.uk

    Answer later.
     
    Certifications: A+ and Network+
  2. nugget
    Honorary Member

    nugget Junior toady

    7,796
    71
    224
    I'll guess number 1.:oops:
     
    Certifications: A+ | Network+ | Security+ | MCP (270,271,272,290,620) | MCDST | MCTS:Vista
    WIP: MCSA, 70-622,680,685
  3. tripwire45
    Honorary Member

    tripwire45 Zettabyte Poster

    13,493
    179
    287
    Answer time. Correct answer is 3. This one was pretty tough and I'm glad you took a try at it, Nugget. :biggrin

    In this case, the dot (.) has a particular meaning that would have been interpreted by the shell. the backslash (\) is used to mask or "switch off" that character.
     
    Certifications: A+ and Network+

Share This Page

Loading...