Suppose one use a regex as a building block. When using RegexBuilder, one just writes Regex {ā¦}. My question is whether it is possible to do this when writing regex literals.
Sry for the late reply,
Iām not sure I fully understand, but you can freely write regex literals with RegexBuilder.
Literals are just a convinient way to represent an object.
from the Regex Tutorial you can see the first code block in " Capturing Matches" is a big Regex { ā¦ } that contains a literal inside it for the new lines.