Solved

Validating UTF8 using regex or other means

Posted on 2013-01-21
2
242 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

630 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