function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SkyBlue2007SkyBlue2007 

Regular expression for control characters!

Hi all,

 

I'm trying to create a Validation Rule.

It's inputfield data which includes some control characters can't be registered in the database.

Also, we can enter up to 240 one-byte characters in the inputfiled.

 

Could you ask me to know Validation Rule sample?

 

Thanks,

 

SkyBlue2007

SAPOCSAPOC

AND(CONTAINS(Input_text,control characters),Len(input_text>240))

SkyBlue2007SkyBlue2007

Hi SAPOC,

 

Thank you for your prompt reply.

What do you think about REGEX( TRIM( Input_text ) , "[\\x00-\\x1F\\x7F]{1,240}" ) ?

 

Thanks,

SkyBlue2007

SAPOCSAPOC

You can definetely do this.Thank you for letting me know.