A wildcard *
can be translated as .*
or .*?
regex pattern.
You might need to use a singleline mode to match newline symbols, and in this case, you can use (?s)
as part of the regex pattern.
You can set it for the whole or part of the pattern:
X* = > @"X(?s:.*)"
*X = > @"(?s:.*)X"
*X* = > @"(?s).*X.*"
*X*YZ* = > @"(?s).*X.*YZ.*"
X*YZ*P = > @"(?s:X.*YZ.*P)"