Customer Portal

REGEX For Finding if a String Contains Dot

Comments 1

  • Avatar
    slechtaj
    0
    Comment actions Permalink
    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.