I am trying to learn Regular Expressions. I've looked at several tutorials but I did not find them clear or comprehensive. My questions is when is ^$ used and when is "\b ." used? I know what they mean but just are sure how.
Some examples:
1. \((\d+)\)\.\((\d+)\)\.\((\d+)\)
2. \b1?264[)- ]*\d{3}[- ]*\d{4}\b
3. ^[a-g]{4}$
Don't all Regular Expressions have to start with "^" and end with "$" ?