REGEX For Finding if a String Contains Dot

Hello

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.