olmccb
(Olmccb)
March 6, 2023, 1:22am
1
Hi there guys i had this expression in one project:
inputString = System.Text.RegularExpressions.Regex.Replace(inputString,"[\s\S]*(?=\*\| Profile)","",RegexOptions.Multiline)
and got no exception then i copied it to another project and in the new project i get
“RegexOptions” is not declared. Why is this happening? Thanks in advance!
Hi @olmccb
Give a try with
System.Text.RegularExpressions.Regex.Replace(inputString,"[\s\S]*(?=\*\| Profile)","", System.Text.RegularExpressions.RegexOptions.Multiline)
1 Like
olmccb
(Olmccb)
March 6, 2023, 1:41am
3
@fernando_zuluaga this is what i get
are you doing like this?
left side your variable, right side you value
System.Text.RegularExpressions.Regex.Replace(inputString,"[\s\S]*(?=\*\| Profile)","", System.Text.RegularExpressions.RegexOptions.Multiline)
olmccb
(Olmccb)
March 6, 2023, 1:47am
5
ok @fernando_zuluaga , yes i have it in an assignment statement…but i guess it took some time but the exception disappeared. Thank you!!
1 Like
system
(system)
Closed
March 9, 2023, 1:47am
6
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.