I need to validate if the list is line delimited and in a valid email format using regex in paragraph field . If not , throw a validation message.test@test.com
test2@test.com
test3@test.com
Discussion posts and replies are publicly visible
You can try this:
regexmatch( pattern: "^[A-Z0-9\'\+\&\%_-]+(\.{0,1}[A-Z0-9\'\+\&\%_-]+)*[@]{1}[A-Z0-9.-]*[A-Z0-9-]+[.]{1}[A-Z]{2,6}$", searchString: ri!email )
Hi Kraty Maheshwari , if i use the above code then if space is present at beginning or at the end ..it is throwing error .can you please help me with this
Hi Fursat,
regexmatch( pattern: "^\s*[A-Z0-9\'\+\&\%_-]+(\.{0,1}[A-Z0-9\'\+\&\%_-]+)*[@]{1}[A-Z0-9.-]*[A-Z0-9-]+[.]{1}[A-Z]{2,6}\s*$", searchString: ri!email )
The above regular expression will allow you to add white space at start and end.
Try this and let me know if it works for you.
Thank you Kraty Maheshwari ,it worked for me
No Problem, always happy to help.