Code: Select all
line:= "él esté ellos estén"
RegExMatch(Line, "^(?:.*?\K\b\S+\b){2}", word1) ; <-- finds the 2nd word
msgbox, % word1 ; prints "est" instead of "esté"
return
esc::exitapp
Code: Select all
line:= "él esté ellos estén"
RegExMatch(Line, "^(?:.*?\K\b\S+\b){2}", word1) ; <-- finds the 2nd word
msgbox, % word1 ; prints "est" instead of "esté"
return
esc::exitapp
Code: Select all
RegExMatch(Line, "\S+\s+\K\S+", word1)