below is the name of a file. How can I get just the text inside the parentheses......CHAPAV186n.2 Dream Time
SUV5 Newbell, Trillia score v1 (CHAPAV186n.2 Dream Time).wav
parse text
Re: parse text
Code: Select all
filename := "SUV5 Newbell, Trillia score v1 (CHAPAV186n.2 Dream Time).wav"
MsgBox % RegExReplace(filename, ".*\((.*)\).*","$1")
____________________________________________________________________________
Windows 10 Pro 64 bit - Autohotkey v1.1.30.01 64-bit Unicode
Windows 10 Pro 64 bit - Autohotkey v1.1.30.01 64-bit Unicode
Re: parse text
genius, thanks.
Re: parse text
ran into trouble Odlanir,
Code: Select all
filelist =
Loop, %clipboard%\*).wav
{
filename := A_LoopFileName
;msgbox % RegExReplace(filename, ".*\((.*)\).*","$1") ;this works
filelist = %filelist%`n % RegExReplace(filename, ".*\((.*)\).*","$1") ;this does not work
}
msgbox, %filelist%
-
- Posts: 302
- Joined: 05 Feb 2017, 00:03
Re: parse text
Try:
Code: Select all
filelist .= "`n" . RegExReplace(filename, ".*\((.*)\).*","$1")
Re: parse text
Nightwolf...........I need to pay you. Thanks a million. Wish I had a million to give you.
Re: parse text
Let's guess 100,000,000 HUF (Forint) will be fine to begin with. Don't hesitate to PM [Nightwolf85] for his account details