Does anybody have a regular expression to be used in the validation controls
of asp.net that checks if the text inputted is:
1) alphanumeric and doesn't include special characters and symbols
2) but allows multilanguage characters or unicode characters
I would prefer it to the format of character set/ class.My head is totally
messed up and dizzy looking for this regex. Thanks in advance. 6 1300
Hi,
have you tried to search http://www.regexlib.com for readymade regular
expressions?
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
"dotnetprog ram" <sm*********@ly cos.com> wrote in message
news:Ox******** ******@tk2msftn gp13.phx.gbl... Does anybody have a regular expression to be used in the validation
controls of asp.net that checks if the text inputted is:
1) alphanumeric and doesn't include special characters and symbols 2) but allows multilanguage characters or unicode characters
I would prefer it to the format of character set/ class.My head is totally messed up and dizzy looking for this regex. Thanks in advance.
I can't find it there..can anybody give me a ready to use regualar
expression for my problem?..I read from msdn that the \W is for unicode
characters..it doesn't work in my case..anybody explain it to me pls??...I'm
really new in regular expressions..Th anks
"Teemu Keiski" <jo****@aspalli ance.com> wrote in message
news:e5******** ******@tk2msftn gp13.phx.gbl... Hi,
have you tried to search http://www.regexlib.com for readymade regular expressions?
-- Teemu Keiski MCP, Microsoft MVP (ASP.NET), AspInsiders member ASP.NET Forum Moderator, AspAlliance Columnist
"dotnetprog ram" <sm*********@ly cos.com> wrote in message news:Ox******** ******@tk2msftn gp13.phx.gbl... Does anybody have a regular expression to be used in the validation controls of asp.net that checks if the text inputted is:
1) alphanumeric and doesn't include special characters and symbols 2) but allows multilanguage characters or unicode characters
I would prefer it to the format of character set/ class.My head is
totally messed up and dizzy looking for this regex. Thanks in advance.
\W matches non-word characters
"dotnetprog ram" <sm*********@ly cos.com> wrote in message
news:OF******** ********@TK2MSF TNGP10.phx.gbl. .. I can't find it there..can anybody give me a ready to use regualar expression for my problem?..I read from msdn that the \W is for unicode characters..it doesn't work in my case..anybody explain it to me
pls??...I'm really new in regular expressions..Th anks
"Teemu Keiski" <jo****@aspalli ance.com> wrote in message news:e5******** ******@tk2msftn gp13.phx.gbl... Hi,
have you tried to search http://www.regexlib.com for readymade regular expressions?
-- Teemu Keiski MCP, Microsoft MVP (ASP.NET), AspInsiders member ASP.NET Forum Moderator, AspAlliance Columnist
"dotnetprog ram" <sm*********@ly cos.com> wrote in message news:Ox******** ******@tk2msftn gp13.phx.gbl... Does anybody have a regular expression to be used in the validation controls of asp.net that checks if the text inputted is:
1) alphanumeric and doesn't include special characters and symbols 2) but allows multilanguage characters or unicode characters
I would prefer it to the format of character set/ class.My head is totally messed up and dizzy looking for this regex. Thanks in advance.
ah ok..does that include symbols or special characters? :)
"Joe Gass" <jo*@dontspamme .com> wrote in message
news:O0******** *****@tk2msftng p13.phx.gbl... \W matches non-word characters "dotnetprog ram" <sm*********@ly cos.com> wrote in message news:OF******** ********@TK2MSF TNGP10.phx.gbl. .. I can't find it there..can anybody give me a ready to use regualar expression for my problem?..I read from msdn that the \W is for unicode characters..it doesn't work in my case..anybody explain it to me pls??...I'm really new in regular expressions..Th anks
"Teemu Keiski" <jo****@aspalli ance.com> wrote in message news:e5******** ******@tk2msftn gp13.phx.gbl... Hi,
have you tried to search http://www.regexlib.com for readymade regular expressions?
-- Teemu Keiski MCP, Microsoft MVP (ASP.NET), AspInsiders member ASP.NET Forum Moderator, AspAlliance Columnist
"dotnetprog ram" <sm*********@ly cos.com> wrote in message news:Ox******** ******@tk2msftn gp13.phx.gbl... > Does anybody have a regular expression to be used in the validation controls > of asp.net that checks if the text inputted is: > > 1) alphanumeric and doesn't include special characters and symbols > 2) but allows multilanguage characters or unicode characters > > I would prefer it to the format of character set/ class.My head is totally > messed up and dizzy looking for this regex. Thanks in advance. > >
Expresso is tool which might assist you in finding a solution. It's very
handy for testing regular expressions. http://www12.brinkster.com/ultrapico/Expresso.htm
Regards,
Mun
"dotnetprog ram" <sm*********@ly cos.com> wrote in message
news:Ox******** ******@tk2msftn gp13.phx.gbl... Does anybody have a regular expression to be used in the validation
controls of asp.net that checks if the text inputted is:
1) alphanumeric and doesn't include special characters and symbols 2) but allows multilanguage characters or unicode characters
I would prefer it to the format of character set/ class.My head is totally messed up and dizzy looking for this regex. Thanks in advance.
This might be offhand. But why not zero in on the set of unicode nos u want
to restrict entry and just write a lil big JS code and wire it to Lost
focus/similiar event of the textbox.
"dotnetprog ram" <sm*********@ly cos.com> wrote in message
news:Ox******** ******@tk2msftn gp13.phx.gbl... Does anybody have a regular expression to be used in the validation
controls of asp.net that checks if the text inputted is:
1) alphanumeric and doesn't include special characters and symbols 2) but allows multilanguage characters or unicode characters
I would prefer it to the format of character set/ class.My head is totally messed up and dizzy looking for this regex. Thanks in advance.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Kenneth McDonald |
last post by:
I'm working on the 0.8 release of my 'rex' module, and would appreciate
feedback, suggestions, and criticism as I work towards finalizing the
API and feature sets. rex is a module intended to make regular expressions
easier to create and use (and in my experience as a regular expression
user, it makes them MUCH easier to create and use.)
I'm still working on formal documentation, and in any case, such
documentation isn't necessarily the...
|
by: Buddy |
last post by:
Can someone please show me how to create a regular expression to do the
following
My text is set to
MyColumn{1, 100} Test
I want a regular expression that sets the text to the following
testMyColumn{1, 100}Test
Basically I want the regular expression to add the word test infront of the
|
by: Brian Kitt |
last post by:
I have a process where I do some minimal reformating on a TAB delimited
document to prepare for DTS load. This process has been running fine, but I
recently made a change. I have a Full Text index on one column, and
punctuation in the column was causing some problems down the line. This
column is used only for full text indexing, and otherwise ignored. I decided
to use the following regular expression to remove all punctuation (actually...
|
by: Billa |
last post by:
Hi,
I am replaceing a big string using different regular expressions (see
some example at the end of the message). The problem is whenever I
apply a "replace" it makes a new copy of string and I want to avoid
that. My question here is if there is a way to pass either a memory
stream or array of "find", "replace" expressions or any other way to
avoid multiple copies of a string.
Any help will be highly appreciated
|
by: kieran |
last post by:
Hi,
I am using Visual Studio 2005 and am trying to use a Regular Expression
Validator control.
I have a drop down list which contains various names, the first one is
"Please Select". I want the user to have to select a name other than
'Please Select'.
I am thinking maybe the Regular Expression Validator is the best move
| |
by: Lucky |
last post by:
hi guys,
i'm practising regular expression. i've got one string and i want it to
split in groups.
i was trying to make one regular expression but i didn't successed.
please help me guys.
i'm using .NET 2.0's Regular expression class.
here is the string.
|
by: Zach |
last post by:
Hello,
Please forgive if this is not the most appropriate newsgroup for this
question. Unfortunately I didn't find a newsgroup specific to regular
expressions.
I have the following regular expression.
^(.+?) uses (?!a spoon)\.$
|
by: Mike9900 |
last post by:
Hello,
I need a regular expression to match a currency with its symbol, for example
Pound66.99 must return 66.99 or Pound(66.99) or Pound-66.99 or -66.99Pound
return -66.99 or any other combination return the decimal number.
I have created a regular expression, but it seems that it does not work if
the number is Pound66.99 but it works if the sign is after the number:
public static Decimal ConvertToDecimal(String str)
|
by: sunil |
last post by:
Hi,
Am writing one C program for one of my module and facing one problem
with the regular expression functions provided by the library libgen.h
in solaris.
In this library we are having two functions to deal with
the regular expressions
char *regcmp(const char *string1, /* char *string2 */ ,
|
by: =?Utf-8?B?VEo=?= |
last post by:
Hi,
I want to know how Regular Expression can be used in this situation.
I want to replace some string in specific condition..
The condition is to replace string only if the string is NOT inside of tag.
For example,
<Test id='wow'>wow</Test>
I want to replace the wow with great...So output will be
<Test id='wow'>great</Test>
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
| |
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |