473,320 Members | 1,955 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,320 software developers and data experts.

REG EXPRESSION

Ken
How can I insert into validationExpression for "any word within 50 any
character long"?
Aug 29 '07 #1
4 1075
On Aug 29, 8:55 pm, "Ken" <k...@jeromegroup.comwrote:
How can I insert into validationExpression for "any word within 50 any
character long"?
..{50}

more info here: http://msdn2.microsoft.com/en-us/lib...41(VS.80).aspx

Aug 29 '07 #2
On Aug 29, 9:59 pm, Alexey Smirnov <alexey.smir...@gmail.comwrote:
On Aug 29, 8:55 pm, "Ken" <k...@jeromegroup.comwrote:
How can I insert into validationExpression for "any word within 50 any
character long"?

.{50}

more info here:http://msdn2.microsoft.com/en-us/lib...41(VS.80).aspx
if space is not allowed then use

\w{50}

it would match any word character including underscore [A-Za-z0-9_]

Aug 29 '07 #3
Ken
Strange enough, it wasn't working .
It seems working with "\w{0,50}" now.

Thanks.

"Alexey Smirnov" <al************@gmail.comwrote in message
news:11**********************@19g2000hsx.googlegro ups.com...
On Aug 29, 9:59 pm, Alexey Smirnov <alexey.smir...@gmail.comwrote:
>On Aug 29, 8:55 pm, "Ken" <k...@jeromegroup.comwrote:
How can I insert into validationExpression for "any word within 50 any
character long"?

.{50}

more info
here:http://msdn2.microsoft.com/en-us/lib...41(VS.80).aspx

if space is not allowed then use

\w{50}

it would match any word character including underscore [A-Za-z0-9_]

Aug 29 '07 #4
On Aug 29, 10:24 pm, "Ken" <k...@jeromegroup.comwrote:
Strange enough, it wasn't working .
It seems working with "\w{0,50}" now.
if you need to validate a text in the TextBox control then you can
simply use the maxlength property

Aug 29 '07 #5

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

Similar topics

23
by: Paul Rubin | last post by:
OK, I want to scan a file for lines matching a certain regexp. I'd like to use an assignment expression, like for line in file: if (g := re.match(pat, line)): croggle(g.group(1)) Since...
70
by: Roy Yao | last post by:
Does it mean "(sizeof(int))* (p)" or "sizeof( (int)(*p) )" ? According to my analysis, operator sizeof, (type) and * have the same precedence, and they combine from right to left. Then this...
22
by: Tony Johansson | last post by:
Hello Experts! I'm reading i a book about C++ and they mention infix with telling what it is. I hope you out there can do so. Many thanks! //Tony
2
by: Mike Turco | last post by:
I like using the expression builder for a lot of different things but it isn't always available when I want to use it, for example in the code window, or in all of the control properties. I am...
14
by: John Temples | last post by:
Given this code: extern volatile unsigned char v; int main(void) { v; return 0; }
15
by: Nerox | last post by:
Hi, If i write: #include <stdio.h> int foo(int); int main(void){ int a = 3; foo(a); }
7
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...
1
by: lovecreatesbea... | last post by:
---quoting--- Annex C (informative) Sequence points 1 The following are the sequence points described in 5.1.2.3: - The end of a full expression: an initializer (6.7.8); the expression in an...
28
by: Marc Gravell | last post by:
In Linq, you can apparently get a meaningful body from and expression's .ToString(); random question - does anybody know if linq also includes a parser? It just seemed it might be a handy way to...
18
by: dspfun | last post by:
Hi! The words "expression" and "statement" are often used in C99 and C- textbooks, however, I am not sure of the clear defintion of these words with respect to C. Can somebody provide a sharp...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.