x = "output/file.zip" x =~ /output\/.\../
returns nil. There is something wrong with avoiding the period, but I cannot understand.
.usually means "any character" in a regular expression. Try this .*, which means " .repeats zero or more times":
.
.*
x =~ /output\/.*\..*/
Works great for me.
Source: https://habr.com/ru/post/1793132/More articles:Как узнать, какой класс вызывает OutOfMemory для JVM? - javaScroll gallery to next page - androidHow do you determine which files were manually merged in mercury history? - version-controlUsing / saving an array of floats in Cocoa - arraysComputing pi in Python using geometry - pythonIs it possible to use unix or linux for an 80286 machine (or any machine without a memory page mechanism) - x86What is the best way to fully read a stream of objects from a file in Java? - javaThe Future of User Instance in SQL Server - sql-server-2008Teamcity MSTest 10.0 no suitable build agents - mstestHow does the decimal fraction work? - decimalAll Articles