TestRegEx
De MicMac
Révision de 27 juillet 2018 à 15:24 par Mgaudin (discussion | contributions) (Création de la page : un début...)
Description
TestRegEx is a tool that allows you to test a regular expression.
Regular Expressions
Regular expressions (RegEx) are a sequence of characters that define a search pattern.
Syntax
The global syntax for TestRegEx is:
mm3d TestRegEx Pattern NamedArgs
Help
You can access to the help by typing :
mm3d TestRegEx -help
*****************************
* Help for Elise Arg main *
*****************************
Mandatory unnamed args :
* string :: {Pattern of files}
Named args :
* [Name=DispPat] bool :: {Display Pattern to use in cmd line ; Def=false}
* [Name=ExpList] string :: {Export list image in text file ; Def=false}
Example
Let the following set of images :
IMG_4167.JPG IMG_4168.JPG IMG_4169.JPG IMG_4170.JPG IMG_4171.JPG IMG_4172.JPG IMG_4173.JPG IMG_4174.JPG IMG_4175.JPG IMG_4176.JPG IMG_4177.JPG IMG_4178.JPG IMG_4179.JPG IMG_4180.JPGIf you want to select only images IMG_4170.JPG, IMG_4171.JPG and IMG_4172.JPG, you can type:
"IMG_417[0-2].JPG"If you want to select all the images, you can type:
".*JPG"