Re: jsl - How to open the most recent file with a specific naming convention?
Aug 27, 2016 6:38 PM(1496 views)
This example uses regex to see if the name ends with .jmp (the $ matches the end of the line) or begins with the letter a (the ^ matches the beginning of the line). Regex returns a missing value if the match fails. The RemoveFrom function deletes offending items from the list. The for loop runs backwards so the deleted items don't change the part of the list that hasn't been examined already. (When an item is deleted, the indexes of subsequent items change.)
NULL tells regex not to replace the matched text; IGNORECASE tells regex that Jmp and jmp should match.