Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Ask Reuben 111 - Regex Compile  (Read 265 times)
Reuben B.
Four Js
Posts: 935


« 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/

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines