If you have strings like this, I want to get only strings with date patterns.
Is it possible to filter out only certain strings by pattern?
of # example data. a = [ 'Vaasa Lama the Korean alphabet' On Feb. 2 is the ' 2020.' , '145692' , 'This is a few years ago and on February 2, by 2020.'. ] # desired results. a = [ ' On Feb. 2 is 2020.' , 'This is a few years ago and on February 2, by 2020.'. ]
It is possible with regular expression. Regular expressions are difficult, but it is useful to study a little.
© 2022 pinfo. All rights reserved.