+ 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?

11th Feb 2018, 10:35 AM
Sri Harsha
Sri Harsha - avatar
3 Réponses
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.
11th Feb 2018, 11:07 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 8
Here's a fairly user friendly resource worth checking out https://docs.python.org/3/howto/regex.html
11th Feb 2018, 5:46 PM
David Ashton
David Ashton - avatar
+ 1
thanks! i know but i wasnt clear but after reading your explanation now i am confident and clear! :D !
11th Feb 2018, 11:33 AM
Sri Harsha
Sri Harsha - avatar