Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Get Vector of filenames in directory matching regex. But has the language changed?

$
0
0

I want to do something similar to what this 2017 StackOverflow person wanted: Get a Vector of all filenames in a directory matching a certain regular expression.

This answer says the following was valid:

filter(r"^trip_data", readdir())

But now, in a Julia 1.4.2 REPL with no packages loaded, this throws: # MethodError: objects of type Regex are not callable. So how would I do it now?

6 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles