Last activity: 29 Apr 2019 0:47 EDT
How to persist the null value instead of special characters when user enters only special characters
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 :
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,
***Edited by Moderator: Pallavi to update platform capability tags***