Hello
I have the following code to find out if a string contains dot or not:
But it is not working. Is there another way to do this regex?
Thanks,
I have the following code to find out if a string contains dot or not:
if(matches($in.0.Salary_Plan_Amount,"\\.") == true)
But it is not working. Is there another way to do this regex?
Thanks,
-
Hi yichuansancun,
There are multiple ways to do this. Let me mention two of them:
CTL fuction contains():if(contains($in.0.yourField,".")) { ... }
Using regex matching operator (~=):if($in.0.yourField ~= ".*\\..*") { ... }
Hope this helps.
Please sign in to leave a comment.
Comments 1