473,399 Members | 2,858 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

RegEx *URGENT*

Hi,

I used the RugularExpression class in my winforms to
validate a textfield. Now I am doing a web application but
using a RegularExpressionValidator and I am using the same
regex as in my winforms. However in my web app it only
checks for single chars instead of the complete string. Is
there any difference when using regex in Webforms and
WinForms?

Thanks!
Nov 18 '05 #1
3 902
"Vishal" <an*******@discussions.microsoft.com> wrote in news:2e13e01c46a77
$c****************@phx.gbl:
Is
there any difference when using regex in Webforms and
WinForms?


Nope - none that I know of.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 18 '05 #2
-----Original Message-----
"Vishal" <an*******@discussions.microsoft.com> wrote in news:2e13e01c46a77$c****************@phx.gbl:
Is
there any difference when using regex in Webforms and
WinForms?

Nope - none that I know of.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when

replying.http://members.ebay.com/aboutme/coolspot18/
.


So what can I do? My RegEx looks like this: ([0-9a-zA-Z]=
[0-9a-zA-Z])

Thanks!
Nov 18 '05 #3
Vishal wrote:
-----Original Message-----
"Vishal" <an*******@discussions.microsoft.com> wrote in


news:2e13e01c46a77
$c****************@phx.gbl:

Is
there any difference when using regex in Webforms and
WinForms?


Nope - none that I know of.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when


replying.
http://members.ebay.com/aboutme/coolspot18/
.

So what can I do? My RegEx looks like this: ([0-9a-zA-Z]=
[0-9a-zA-Z])

So the regex is: "([0-9a-zA-Z]=[0-9a-zA-Z])"

But, it's hard to tell you what's wrong with the regex if you don't let
us know what you expect it to do (and the cases where it's doing
something unexpected).

So, now we need to know what your expectations are: what kinds of
strings do you expect to match? What kinds of strings do you expect NOT
to match? What strings are you having problems with?

--
mikeb
Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Andy | last post by:
Hi All I have a urgent problem with the regex object. I am currently reading in source code files (complete file including newline characters) as plain text into a string. i am then using a regex...
0
by: rodrigo | last post by:
This is the source text I am working on. 3593 blue $15.95 3944 yellow 8.10 4001 brown $9.75 Basically I want to extract each part separately like this part 1 3593
6
by: Extremest | last post by:
I have a huge regex setup going on. If I don't do each one by itself instead of all in one it won't work for. Also would like to know if there is a faster way tried to use string.replace with all...
7
by: Extremest | last post by:
I am using this regex. static Regex paranthesis = new Regex("(\\d*/\\d*)", RegexOptions.IgnoreCase); it should find everything between parenthesis that have some numbers onyl then a forward...
4
by: Joe | last post by:
I need to do a find/replace on a column name in DataColumn.Expression. Is there a way to do the following using RegEx? MyColumn 10 and Desc = "This is MyColumn desc" I need to replace the...
5
by: Bragadiru | last post by:
Hi, I'm using the following Regex to parse for method parameters. It works if there are no spaces between commas. How can I change the regex to support method calls like : MyMethod('uno', ...
4
by: Henrik Dahl | last post by:
Hello! In my application I have a need for using a regular expression now and then. Often the same regular expression must be used multiple times. For performance reasons I use the...
15
by: morleyc | last post by:
Hi, i would like to remove a number of characters from my string (\t \r \n which are throughout the string), i know regex can do this but i have no idea how. Any pointers much appreciated. Chris
4
by: MaxMax | last post by:
I want to add a text to another text using regular expressions... An example before= "foo" after= "foobar" before= "one" after= "onebar" before = "" after = "bar"
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
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,...
0
jinu1996
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...
0
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...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.