Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Validating UTF8 using regex or other means

Posted on 2013-01-21
2
Medium Priority
?
243 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
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: …
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

688 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