Monday, April 22, 2013

RegEx FAQs (Without answers!)


what is * and + in regex ?


what is the difference between ?:, ?! and ?= in regex?




What is the difference between ^ and \A , $ and \Z in regex?




What's the difference between () and [] in a regex?




What is the difference between "a{1}" and "a" in regex?  => almost no




Differences between`[.]` vs `.` in regex
'.' is a wildcard : means any character
[.] means specifically  character '.'

•.* literally means "Match zero or more of any character", wherein the . acts as a wildcard.
 •[.]* literally means "Match zero or more dot . characters", wherein the . enclosed in a character class [] is matched literally.





How to use ? and ?: and : in REGEX

No comments:

Post a Comment

How to check local and global angular versions

 Use the command ng version (or ng v ) to find the version of Angular CLI in the current folder. Run it outside of the Angular project, to f...