Hi
I would like check the string, that it contains a criteria. Every criteria structure like this but contains different number and word, but the length is fixed. every time it start with ~ and end with ~. it start with 32 character what contains mixed letter and number, after _ sign and at the end 14 digit.
Example ~c0830ca4bd8ce9d99d16e1f254f684bb_20210213~.
I would like if the string countains same string give back a msgbox with yes. I do not really understand the regex so can somebody help me.
thanks
If instring regex Topic is solved
Re: If instring regex Topic is solved
Your example didn't have 14 digits after the _, so I think you want it like below:
Code: Select all
Str := "~c0830ca4bd8ce9d99d16e1f254f684bb_20210213000000~"
if RegExMatch(Str, "~[a-z0-9]{32}_\d{14}~")
MsgBox, yes
Who is online
Users browsing this forum: Chunjee, Google [Bot], JoeWinograd and 167 guests