Sitemap

--

Press enter or click to view image in full size
regular expression with lambda function in python

RegEx Regular Expression inside Lambda Function in Python

*Video Link:-
https://youtu.be/fr7I2SCfTnw

*Library Package :- re

Get Computer Coding Class’s stories in your inbox

Join Medium for free to get updates from this writer.

*Details:-
In this program, we searched occurance of all strings started with character 'a' from a list using regular expression inside lambda function.

*Coding:-
import re
names=['annu', 'ram', 'anant', 'mohan']
x=filter((lambda name: re.match('^a', name)), names)
print(list(x))

*Hashtags:-
#python #regex #function #coding #online

Computer Coding Class

--

--

Computer Coding Class
Computer Coding Class

Written by Computer Coding Class

It is a YouTube Channel to learn Computer Coding and Programming in different famous Programming languages like C++, Python, Java from scratch to advanced leveI