Regular Expressions
Options
HC
Member ✭
Hi.
I have this expression that I use to test for invalid email addresses.
/^[A-Za-z0-9.-_]+@([A-Za-z0-9.-]+\.)[A-Za-z0-9-]+$/
It works fine except for a case where it matches abc@abc@abc.com, where there are 2 @s
I have tested this regular expression on https://regex101.com/ and it works as expected. ie not matching abc@abc@abc.com.
Anyone can shed some light on this?
I have this expression that I use to test for invalid email addresses.
/^[A-Za-z0-9.-_]+@([A-Za-z0-9.-]+\.)[A-Za-z0-9-]+$/
It works fine except for a case where it matches abc@abc@abc.com, where there are 2 @s
I have tested this regular expression on https://regex101.com/ and it works as expected. ie not matching abc@abc@abc.com.
Anyone can shed some light on this?
Categories
- All Categories
- 53 ? Announcements
- 47 ? Releases
- 37 ? Welcome
- 983 ? Help! I'm a Noob
- 125 ? No-Code Front-Ends
- 633 ? Working with APIs
- 439 ? Transforming data
- 126 ? Connect Xano to ...
- 50 ?? Find an Expert
- 348 ❓Other questions
- 35 ? Security
- 22 ✂️ Snippets
- 19 ? Showcase
- 7 ?️ Xano Chatter
- 62 ? Video Tutorials
- 171 ? Request a feature
- 229 ? Report a Bug
- 19 ? Templates & Extensions
- 7 ? Feedback