0
Python 3
User defined functions in regular expressions
1 Answer
+ 1
Didn't get exactly what is meant ?
But may be this is answer.
def myfunc():
print('This is user defined function')
myfunc()
parameter can be passed if necessary.
def myfunc(x,y):
return x+y
print('The sum is: ',myfunc(32,45)
RegEx
#To import regular expression
- import re
more about regular expression:
https://www.programiz.com/JUMP_LINK__&&__python__&&__JUMP_LINK-programming/regex