[Python-ideas] Re: Regular Expression | re - Support String List Input Type List[str]

2020-09-28 Thread Giang Le
Hi, I would like to have the same function re.search(pattern, input) to keep 
main code structure to be the same. The input into the re.search function will 
be depended on other previous functions. It is also more dynamic for users. 
Thank you.
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/ALKQ7754NLPDFYK6F743YFCYJD5THHOE/
Code of Conduct: http://python.org/psf/codeofconduct/


[Python-ideas] Regular Expression | re - Support String List Input Type List[str]

2020-09-28 Thread Giang Le
Hi Everyone,

I would like to propose an idea for the regular expression module 
re.search(Pattern, Input) to support List[str] input type.
So it will return a matched object list if the input is a string list. 
Otherwise, it will return a normal matched object, if the input is a normal 
string

Best Regards
Giang
___
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/4LOOP2FDK7JQ7XU3Z4Y7JNLOOW5FQOHH/
Code of Conduct: http://python.org/psf/codeofconduct/