Solved

Validating UTF8 using regex or other means

Posted on 2013-01-21
2
230 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
 

Author Closing Comment

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

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now