Page 1 of 1

RegExMatch help

Posted: 26 Oct 2017, 17:12
by HIAC
Hello,

Code: Select all

f1=Imagine Dragons - Whatever It Takes - YouTube - Google Chrome
RegExMatch(f1, "???????????", Title)
Msgbox %title%

How can I get everything till "- YouTube - Google Chrome", basically "Imagine Dragons - Whatever It Takes" by using regexmatch?

Re: RegExMatch help  Topic is solved

Posted: 26 Oct 2017, 17:22
by Nextron
RegExMatch(f1, ".*(?= - YouTube - Google Chrome)", Title)
But I'm guessing title:=SubStr(f1,1,-26) has less overhead.