Skip to Content
avatar image
Former Member

Check string for Special Charaters

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Nov 16, 2014 at 06:07 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded