cancel
Showing results for 
Search instead for 
Did you mean: 

Check string for Special Charaters

Former Member
0 Kudos

I am trying to check a field for special charaters and just cant seem to make it work.

I figure it to be some version of this

BEGIN RETURN

match_regex($parameter0, '[^a-z]+', null);

END

Any help in this matter would be greatly appreciated.

Accepted Solutions (0)

Answers (1)

Answers (1)

venkataramana_paidi
Contributor
0 Kudos

Hi Andrew,

Please try with this code.

BEGIN

IF ( match_regex($INPUT, '[:alnum:]+', null) =1)

  RETURN TRUE;

ELSE

  RETURN FALSE;

END

I hope this will work.  If you need only alphabets use [:alpha:] instead for [:alnum:].

Thanks & Regards,

Ramana.