Code: Select all
Str := "The President: [Quiet: We do have economic problems]"
RegExMatch(Str, "^.*: \K.*", m)
MsgBox % m
Thanks. <3
Code: Select all
Str := "The President: [Quiet: We do have economic problems]"
RegExMatch(Str, "^.*: \K.*", m)
MsgBox % m
Code: Select all
;before the first ':'
Str := "The President: [Quiet: We do have economic problems]"
RegExMatch(Str, "^.*?(?=:)", m)
MsgBox % m
;after the first ': '
Str := "The President: [Quiet: We do have economic problems]"
RegExMatch(Str, "^.*?: \K.*", m)
MsgBox % m
Return
Users browsing this forum: inseption86, mikeyww and 428 guests