Question

How to persist the null value instead of special characters when user enters only special characters
Hi ,
I am working on a requirement where i need to persist the null value when user enters only special characters.
I am giving 2 scenarios here for more clarity :
Scenario 1:
First Name : @-=+|Ravi
this one am able to remove leading spl characters from a First Name property.
O/P : First Name : Ravi
Scenario 2 :
When user enters only special characters
First Name : @-=+|%
currently, this one is getting persisted in DB with spl chars, but that should not happend.
So, How can i persist the null value in DB instead of spl chars.
Please suggest is there any such regular expression which contains only special characters.
So that i can replace the regex with null value (" " )
Also attached screenshot for reference.
Thanks in Advance,
Ravi
***Edited by Moderator: Pallavi to update platform capability tags***