The ~ are delimiters. I think (if I remember correctly) the guy in the video uses dollar signs as delimiters. You can use pretty much anything. If you haven't watched the video yet, I stronly encourage you to do so. It will answer most of your questions.
\s* means 0 (zero) spaces or any amount.
[ ]? is a possible space, yes.
Quote:
Originally Posted by jonnekke
Is there a site where to find a list of options to use i a regular expression?.
|
Yes.