regex in python to obtain only the string in python
import re
print(" ".join(re.findall("[a-zA-Z]","your string")))
regex in python to obtain only the string in python
import re
print(" ".join(re.findall("[a-zA-Z]","your string")))
variable in regex python
import re
s = 'I love books'
var_name = 'love'
result = re.search('(.+)'+var_name+'(.+)',s)
print result
var_name = 'hate'
s2 = 'I hate books'
result = re.search('(.+)'+var_name+'(.+)',s2)
print result
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us