Correct usage of regex matches

Could use an array comprehension with an if inside

julia> my_strings = ["anystring","question1","question29","somestring","someotherstring"];

julia> r = r"question[0-9]+";

julia> [x.match for x in (match(r, m) for m in my_strings) if x !== nothing]
2-element Vector{SubString{String}}:
 "question1"
 "question29
3 Likes