scrapinghub / shublang

Pluggable DSL that uses pipes to perform a series of linear transformations to extract data
BSD 3-Clause "New" or "Revised" License
15 stars 8 forks source link

add example-5 for double 'first' usage #28

Closed BurnzZ closed 4 years ago

BurnzZ commented 4 years ago

Adding in this PR to keep track of the case where we have to use a double first expression in:

sub(r',', '') | re_search(r'#(\d+)') | filter(lambda x: x) | first | int | first