#regular expressions
import re
pattern=r"[\w.-]+@[\w.-]+"
string="Please send your fedback at info@oxford.com"
match=re.search(pattern,string)
if match:
    print("Email to:",match.group())
else:
    print("no match")
pattern=r"^[0-9]+ .*"
string="12 abc"
match=re.search(pattern,string)
if match:
    print("match")
result=re.findall(r'.',"good going")
print(result)
result1=re.findall(r'\w+',"good going")
print(result1)
result2=re.findall(r'\w+$',"good going")
print(result2)
result3=re.findall(r'\w\w\w',"good going")
print(result3)
2b470c43eda3b76a7a4b248db392b37b83e1ca44
<mask token>

<mask token>
if match:
    print('Email to:', match.group())
else:
    print('no match')
<mask token>
if match:
    print('match')
<mask token>
print(result)
<mask token>
print(result1)
<mask token>
print(result2)
<mask token>
print(result3)

<mask token>
pattern = '[\\w.-]+@[\\w.-]+'
string = 'Please send your fedback at info@oxford.com'
match = re.search(pattern, string)
if match:
    print('Email to:', match.group())
else:
    print('no match')
pattern = '^[0-9]+ .*'
string = '12 abc'
match = re.search(pattern, string)
if match:
    print('match')
result = re.findall('.', 'good going')
print(result)
result1 = re.findall('\\w+', 'good going')
print(result1)
result2 = re.findall('\\w+$', 'good going')
print(result2)
result3 = re.findall('\\w\\w\\w', 'good going')
print(result3)

import re
pattern = '[\\w.-]+@[\\w.-]+'
string = 'Please send your fedback at info@oxford.com'
match = re.search(pattern, string)
if match:
    print('Email to:', match.group())
else:
    print('no match')
pattern = '^[0-9]+ .*'
string = '12 abc'
match = re.search(pattern, string)
if match:
    print('match')
result = re.findall('.', 'good going')
print(result)
result1 = re.findall('\\w+', 'good going')
print(result1)
result2 = re.findall('\\w+$', 'good going')
print(result2)
result3 = re.findall('\\w\\w\\w', 'good going')
print(result3)

#regular expressions
import re
pattern=r"[\w.-]+@[\w.-]+"
string="Please send your fedback at info@oxford.com"
match=re.search(pattern,string)
if match:
    print("Email to:",match.group())
else:
    print("no match")
pattern=r"^[0-9]+ .*"
string="12 abc"
match=re.search(pattern,string)
if match:
    print("match")
result=re.findall(r'.',"good going")
print(result)
result1=re.findall(r'\w+',"good going")
print(result1)
result2=re.findall(r'\w+$',"good going")
print(result2)
result3=re.findall(r'\w\w\w',"good going")
print(result3)