^ Match the beginning of the string Not in [] (or line, if /m is used) ... $ Match the end of the string Not in [], but can ... * Matches the preceding element 0 or more Not in [] times