ABOUT ME

이 곳은 data scientist가 되기 위한 저의 과정들을 공유하는 공간입니다. 저랑 비슷한 목표를 갖고 있는 사람이 있다면 여기에 있는 저의 내용이 조금이나마 도움이 되면 좋을 거 같네요 :)

Today
Yesterday
Total
  • What i learnt today is ...
    Python/Py4e from Coursera 2020. 10. 5. 20:44

    Today i started a new chapter that deal with regular expressions. So as i review all the stuff what i took , i hope that i get all of that !

     

    Regular expressions : A regular expression is a form of a language, and meaning it's a way to say that a set of strings match or don't match a regular expression. It's a programming language for string matching. for using regular expressions, we have to import at the beginning with the import statement.

     

    Here's a couple of things of regular expressions.

    1. re.search() : It is the search capability from the regular expression library. It tells you yes or no.

    2. re.findall() : It is to extract portions of a string that match your regular expression.

    3. Wild-Card Characters

     1) dot(.) : It means any character

     2) Star(*, asterisk) : It means zero or more times. 

     3) caret(^) : It means the beginning of a line.

     4) \S : It means match any non-whitespace character

     5) + : It means One or more times

    'Python > Py4e from Coursera' 카테고리의 다른 글

    Regular expressions  (0) 2020.10.06
    Finish the second chapter !  (0) 2020.10.04
Designed by Tistory.