I'm trying to create a function that will take a string which could be over multiple lines, e.g.:
"declare notThese
declare orThis
hello = $notThis@butthis$
butNot= $ButNotThis$
andDefNot = getDate()"
And search through it, pulling out {string1}
's from all parts like
${whatever}@{string1}$
and then pushing them into an array.
How would I archive this? Would it be through regex or is it simpler than that?
Also would it make a difference if the string renders on multiple lines like above?