in reply to Re^2: Extract the variable
in thread Extract the variable

&ot

Presuming ".declare " is a fixed prefix and the variable name is always followed by a real space character (i.e. you're not worried that there's a TAB instead) then yes you could use substr starting at offset 10 after using index (also starting at offset 10) to find where the variable name ends.