1.4 Grouping in regular expression - (x) $1-$9 \n (?:x)

Опубликовано: 27 Декабрь 2024
на канале: beingDev
377
2

Next video in the series on quantifiers
   • 1.5 Quantifiers, Assertion in regex -...  

✪ Help me get 1k subscribers
► https://goo.gl/eqx8VA ◄

Twitter →   / beingdev3  

(x) Capturing group (organise and parse)
$1-$9 Static properties (RegExp.$1 not on the object)
\n n is a positive integer. Similar to $1-$9, but will work in the same regex
(?:x) non-capturing group (organise)

Non-capturing groups
https://stackoverflow.com/questions/3...
capturing-group-what-does-a-question-mark-followed-by-a-colon

Link to the presentation
https://docs.google.com/presentation/...