Actually, I gave you the wrong specification for what I needed. You answered my question perfectly. However, what I should have said is "I need the user to be able to enter 1 and only 1 embedded space...and the embedded space is optional, not required." Is there a way to make that embedded space optional? Thanks again Manfred. JD.
Actually, I gave you the wrong specification for what I needed. You answered my question perfectly. However, what I should have said is "I need the user to be able to enter 1 and only 1 embedded space...and the embedded space is optional, not required." Is there a way to make that embedded space optional? Thanks again Manfred. JD.
Bulls-eye. Now this string makes a lot more sense:
B4X:
Dim MatchEmail As Matcher = Regex.Matcher("^(?i)[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])$", EmailAddress)