Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

re mobile no validate python

# validate either with +91 or without
s = +91 9876543210
r = re.compile("?:(+91s)?([6-9][0-9]{9})$")
m = re.search(r,s)
if m:
  print(re.group())
else:
  print("not found")
  
        
Comment

PREVIOUS NEXT
Code Example
Python :: python get_loc not returning number 
Python :: jupiter output 
Python :: loops with variables that count 
Python :: statsmodels logistic regression odds ratio 
Python :: jupyter notebook print string with variables 
Python :: show every second xtick 
Python :: seaborn plot to see outliers 
Python :: pandas return indices that match 
Python :: blockchain.py 
Python :: write a python program which accepts the user 
Python :: pbcopy stands for 
Python :: Arduino - Send Commands with Serial Communication with python 
Python :: running mean 
Python :: qaction hide show python 
Python :: import cv2 illegal instruction (core dumped) 
Python :: how to remove zero after decimal float python 
Python :: python tcp 
Python :: c to python translator 
Python :: python loop list backwards 
Python :: python transpose a list 
Python :: convert date to integer python 
Python :: regular expression in python 
Python :: c to python converter 
Python :: pyinstaller windows 
Python :: leetcode solutions python 
Python :: python editor online 
Python :: numpy and operator 
Python :: how to find the average in python 
Python :: how to duplicate a row in python 
Python :: hash in python 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =