Regular expressions teach class

Here are some regular expressions constructed that I use everyday. These are tested in C#:

  1. Matching any character: [abc]
  2. Matching any word: b[^ "]*b
  3. "" matching: "[^"]*"
  4. More advanced “” matching: "(\"|[^"])*"
  5. /**/ comments matching: /*[^*]**+([^/*][^*]**+)*/
  6. Matching HTML elements: <[^<^>]*>
  7. Matching CSS {} content: {[^{]*}

tags: & category: -