Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to create search function in python

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 681
    Comment on it

    In python search function searches for first occurrence of RE pattern within string with optional flags. The search function is used to re.search function and returns a match object on success.
    use the below syntax for search function in .py file,

    re.search(pattern, string, flags=0)
    

    Below is the description of the parameters:
    1- pattern: pattern is a regular expression to be matched.
    2- string: string search to match the pattern anywhere in the string.
    3- flags: flags specify different flags using bitwise OR (|).

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: