I am having trouble understanding the following portion of the RegEx command (,0,matches,num). What does the first 0 or 1 stand for? It wasn't clear to me from reading the help. I used the examples in the help and changed the first number until I achieved my desired result. Is "matches" the variable used to store the pattern matched? And "num" stores the number of matches? So, when using the command "MessageModal>matches_1" it is saying display the first match found by the command? And if I wrote "MessageModal>matches_2" and there where two matches I would be shown the 2nd match?
Thanks for the help.
My code below:
Code: Select all
//Long Version
Let>text=D:\BlackCats_Documents\My_Videos\DVD\Action\MovieNameHere
Let>pattern=(\w\D\S+\\)
RegEx>pattern,text,0,matches,num,0
MessageModal>matches_1
StringReplace>text,matches_1,,strNewString
MessageModal>strNewString
//Best Version
Let>text=D:\BlackCats_Documents\My_Videos\DVD\Action\MovieHere
Let>pattern=(\w\D\S+\\)
RegEx>pattern,text,0,Matches,NumMatches,1,,MovieName
MessageModal>MovieName