You can also set 'expanded' mode modifier within the regex as long as its the first char past the
delimiter.
= '/(?x)
# A comment
( # (1 start), some capture
.
) # (1 end)
/';
And/Or, it should also be available within //x
context
'/
# A comment
( # (1 start), some capture
.
) # (1 end)
/x';
Or, you can freely move in/out of x-mode within the code
'/((?x) # (1 start), some capture
.
(?-x: A ) # ' A '
) # (1 end)
/'