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

 using Microsoft.AspNetCore.Mvc; using System.Xml.Linq; using System.Xml.XPath; //<table class="common-table medium js-table js-stre...