How does the Regex (? = ^.) And ^ (? =.) Engine work?

What is the difference between these two Regex criteria:

(?=^.{3}).*
^(?=.{3}).*

Anchor ^ before gaze and inner gaze

+2
source share
1 answer

There should be no difference. An anchor inside a lookahead group is treated as outside .

0
source

Source: https://habr.com/ru/post/1538378/


All Articles