I'm just wondering if Regex rule can have a condition?
for example, I want that some UDF field will be mandatory just in case the line is open (line status)?
Is it possible in regex?
A regex rule cannot have any conditions. To implement that you would have to create a C#/VB rule to determine the condition and implement the regex using .NET. You will find it in the System.Text.RegularExpressions namespace.