We have use the following Regex function to highlight the string and numeric
String Regex function
public string StringRegEx
{
get { return @"@?""""|@?"".*?(?!\\).""|''|'.*?(?!\\).'"; }
}
Numeric Regex function
public string NumberRegEX
{
get { return @"[0-9].*?(?=:[0-9]*)?"; }
}
while using this regex function we have face some issues for highlighting string contains numeric
p1 = 1
p2 = 0.2
In this example, 1 and 2 in p1 and p2 also highlighted. How to skip the number highlighted along with the string?