Regular Expressions
Using ==~ operator
The operator ==~ can be used to check if a string matches a regular expression:
assert "/my/full/path/to/process/dir/example.vcf.pgen" ==~ ".*/example.vcf.pgen"
==~ operatorThe operator ==~ can be used to check if a string matches a regular expression:
assert "/my/full/path/to/process/dir/example.vcf.pgen" ==~ ".*/example.vcf.pgen"