(?<=\+)(.*)(?=\@)
will match world in hello+world@mail.com
- start at
+with(?<=\+) - select all characters with
(.*) - end at
@with(?-\@)
^MATCHER$
$[5-6]^ will match "5"
$[5-6]^ will not match "7"
$[5-6]^ will not match "55"
(?<=\+)(.*)(?=\@)
will match world in hello+world@mail.com
+ with (?<=\+)(.*)@ with (?-\@)^MATCHER$
$[5-6]^ will match "5"
$[5-6]^ will not match "7"
$[5-6]^ will not match "55"