Four Js Development Tools Forum

General => Ask Reuben => Topic started by: Reuben B. on February 21, 2022, 02:12:48 am



Title: Ask Reuben 111 - Regex Compile
Post by: Reuben B. on February 21, 2022, 02:12:48 am
An interesting question that was posed, with the new Regular Expression functionality added in 4.00, is it better to use the new string.matches method or the util.regexp.matches method?
 
One of the factors you should take into account is how many times will this be executed versus complexity of your code.  This can be shown with use of the profiler.
 
Read more at https://4js.com/ask-reuben/ig-111/