In MAXScript functions take the form of either:
fn <name> <param 1> <param 2> ... <param n> =
or
function <name> <param 1> <param 2> ... <param n> =
I've made a function string regular expression that can find them in either format and populate the list without the "fn" or "function". I'd like to keep the trailing = character from appearing too. I haven't been able to figure out how to do that, though.
My regular expression is:
/Function String = "%[ ^t]++^{fn^}^{function^}++ ^(*++^)$"
Additionally, if possible, what would the proper format be to only show the function name (no parameters, no =) in the function list?
fn <name> <param 1> <param 2> ... <param n> =
or
function <name> <param 1> <param 2> ... <param n> =
I've made a function string regular expression that can find them in either format and populate the list without the "fn" or "function". I'd like to keep the trailing = character from appearing too. I haven't been able to figure out how to do that, though.
My regular expression is:
/Function String = "%[ ^t]++^{fn^}^{function^}++ ^(*++^)$"
Additionally, if possible, what would the proper format be to only show the function name (no parameters, no =) in the function list?