Solved

Validating UTF8 using regex or other means

Posted on 2013-01-21
2
234 Views
Last Modified: 2013-01-21
I have been asked to vaidate a VB form where adresses are entered.  The problem at hand is that many addesses are copied and pasted from webpages and often relate to none english addresses.  I was thinking of using regex to achieve the validation and thereafter prompt the user to make the changes themself.  

What I am looking for is either a good regex string or suggestion of other means of doing this.
0
Comment
Question by:Alyanto
2 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 500 total points
ID: 38800675
Unicode Regular Expressions
http://www.regular-expressions.info/unicode.html

Using Regular Expressions with The Microsoft .NET Framework
http://www.regular-expressions.info/dotnet.html

Or you can disable the paste-function in a textbox ...
http://social.msdn.microsoft.com/Forums/en-US/vbide/thread/1bf46245-4696-44f0-ab36-5fb51cb546cd/
You can also disable copy and paste when user attempts to do it using Ctrl+C and Ctrl+V.
to do this,Create a KeyDown Event handler for the text box and then paste this code:

If e.Modifiers = Keys.Control Then

e.Handled = True

MyTextBox.SelectionLength = 0

End If

Open in new window

0
 
LVL 1

Author Closing Comment

by:Alyanto
ID: 38800925
Thankyou that is just the job
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

805 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question