I want to check if a specific pattern was in a string to do some action
[filename pathname]=uigetfile fullpath=[pathname filename]
In my p
You can select a folder and then import only those pictures which match a pattern by using directly dir() and wildcard *:
dir()
*
dir('C:\Users\username\Desktop\folder\*_cam*.jpg')