thanks starbucks and sigh grin
i was trying to do a while with $regex and $regsub, but it dont works (maybe i have made a mistake)

i will try your while, sigh, it seems to be what i need smirk

about the factorial (its "fac" in english? i suggest $fat because here i say "fatorial", blush ), let me dream a little. what about an $calc_ext that is a little more slow but can do operations with large numbers? laugh (ok, its nonsense frown frown )


__________
dark_light @ irc.brasnet.org