Vectoronica

What i learnt today is ... 본문

데이터 사이언스/Python 입문

What i learnt today is ...

SeungUk Lee 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 입문' 카테고리의 다른 글

Regular expressions  (0) 2020.10.06
The first time to review  (0) 2020.10.04
Finish the second chapter !  (0) 2020.10.04
Let's get started to learn Python !  (0) 2020.10.03