RegExMatch help Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
HIAC
Posts: 111
Joined: 11 Oct 2017, 17:59
Location: Republic of Serbia

RegExMatch help

26 Oct 2017, 17:12

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?
User avatar
Nextron
Posts: 1391
Joined: 01 Oct 2013, 08:23
Location: Netherlands OS: Win10 AHK: Unicode x32

Re: RegExMatch help  Topic is solved

26 Oct 2017, 17:22

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

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: mamo691, MrDoge and 246 guests