Regular Expressions Prac.

Card Set Information

Author:
dalbabes
ID:
164036
Filename:
Regular Expressions Prac.
Updated:
2012-07-26 11:59:59
Tags:
Regular Expressions
Folders:

Description:
Practice of Some basic Regular Expressions
Show Answers:

Home > Flashcards > Print Preview

The flashcards below were created by user dalbabes on FreezingBlue Flashcards. What would you like to do?


  1. "ab*"
    matches a string that has an a followed by ZERO or more b's ("a", "ab", "abbb", etc.)
  2. ab+": same, but there's at least one b ("ab",
    "abbb", etc.)
    • matches a string of ONE or more b's,("ab",
    • "abbb", etc.)
  3. "ab?"
    a and maybe a b after
  4. "a?b+$": 
    a possible a followed by one or more b's ending a string
  5. "ab{2}"
    •  matches a string that has an a followed by exactly
    • two b's ("abb");
  6. ab{2,}
    there are at least two b's ("abb", "abbbb", etc.)
  7. ab{3,5}
    from three to five b's ("abbb", "abbbb", or "abbbbb")
  8. "a(bc)*"
    matches a string that has an a followed by zero or more copies of the sequence "bc"
  9. a(bc){1,5}
    one through five copies of "bc."
  10. b|cd)ef 
    a string that has either "bef" or "cdef";
  11. a.[0-9]
    • matches a string that has an a followed by one
    • character and a digit;
  12. ^.{3}$
    a string with exactly 3 characters
  13. ",[a-zA-Z0-9]$"
    a string that ends in a comma followed by an alphanumeric character.

What would you like to do?

Home > Flashcards > Print Preview