Hello community,
I have been trying to see if a word is present in the string. But the condition returns false.
The regex i use
System.Text.RegularExpressions.Regex.IsMatch(strContent,"(?<=>.*)(?<!\w)color(?!\w)(?=.*<)")
The input given:
<h1>my color is red</h1>
Am I doing anything wrong here?
Parvathy
(PS Parvathy)
2
Hi @hansen_Lobo
Your process is absolutely right. I have tried the same process as you have written. Its working fine with me.
System.Text.RegularExpressions.Regex.IsMatch(strContent,"(?<=>.*)(?<!\w)color(?!\w)(?=.*<)").toString
Note: In the above expression I have added “.toString”
Note: Attached the workflow for reference
Sequence.xaml (9.1 KB)
Hope it helps!!
Regards,
system
(system)
Closed
3
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.