+ 1
I have a doubt regarding regular expressions from python...
Do re.match,re.search,etc come under regular expressions or only .,*,+,\ come under regular expressions? If re.match, re.search do not com under regular expressions what do we call them?
3 odpowiedzi
0
It seems match() and search() are methods to parse(analyze) regex expressions and generate output from them.
+,.,*,?, etc constitute metacharacters. When metacharacters and/or groups and/or character classes are combined with other characters to form a string, that string may be called a regular expression, a certain pattern which forms a basis of analysis.
+ 8
Here's a fairly user friendly resource worth checking out https://docs.python.org/3/howto/regex.html
+ 1
thanks! i know but i wasnt clear but after reading your explanation now i am confident and clear! :D !