11.7. Regex Examples dot (.)

Any line that has any of the xax, xbx, ..., that is any character between two x-es.

Regex: /x.x/  
Input: "abcde"
Input: "abxcxbde"
Input: "xabcde"
Input: "xabxcxde"

Any line that has x.x (A real . between two x-es.)

Regex: /x\.x/  

The special characters are: . * + ? ^ $ \ ( ) [ ] | { }    and the delimiter: /

Some of the characters change their special meaning based on position. 


If you are interested in on-site trainings by the author, please contact me directly.

Online courses:

Would you like to get
updated when I publish
the next article?

Follow me:

Google Plus Twitter RSS feed