When JavaScript regular expression is executed, is there an expression mechanism that evaluates expressed compiled code? or is the engine written in javascript?
When I performed some basic string match tests, I found that one regex was much faster than my JavaScript function, which does the same, so I wondered why the regex was faster.
PS: I am completely unfamiliar with regex.
source
share