Need help trimming the last character in a Function String

Need help trimming the last character in a Function String

11
Basic UserBasic User
11

    May 12, 2005#1

    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?

    6,675585
    Grand MasterGrand Master
    6,675585

      May 13, 2005#2

      Try this "%[ ^t]++^{fn^}^{function^}[ ^t]+^([~ ]+^)*="
      Best regards from an UC/UE/UES for Windows user from Austria

      11
      Basic UserBasic User
      11

        May 13, 2005#3

        Thank you, Mofi. That works wonderfully!