Lua uses regex like any other scripting languages (Perl, Python). Just google for "Lua regex" for many examples.You can use any Lua online interpreter to test your regex: https://replit.com/languages/lua
Hope that helps.
Hi estillman,If you're looking for a formula used to compute the GlobalCallID then I don't think it's available to the public. GlobalCallID is unique for each call and can be used for billing purposes. Here is the excerpts from the CDR Admin guide:
I am checking with the JTAPI team to confirm the answer to your question. I think for resource consumption it would make more sense to use RTMT to monitor the performance counters.