Re: [WebDNA] ONLY the FIRST continuous run of numeric chars?
This WebDNA talk-list message is from 2008
It keeps the original formatting.
numero = 101232
interpreted = N
texte = --=====================_53542265==.ALTContent-Type: text/plain; charset="us-ascii"This is a pretty cool tool -http://gskinner.com/RegExr/GJKAt 12:58 PM 10/21/2008, you wrote:>The O'Reilly Pocket Guide for Regular Expressions is a handy reference in these situations.>>[^0-9]* - any character except a number followed by one or more of the same character>([0-9][0-9]*) - two or more numbers followed by one or more of the same character.>- The parenthesis mark it for the \1 in the replace statement.>.* - Any character (except line breaks) followed by one or more of the same character>| - OR>.* - Any character (except line breaks) followed by one or more of the same character.>>It then replaces it with whatever was found in the parenthetical set. >If no number strings were found by themselves, it returns blank.--=====================_53542265==.ALTContent-Type: text/html; charset="us-ascii"
This is a pretty cool tool -
http://gskinner.com/RegExr/
GJK
At 12:58 PM 10/21/2008, you wrote:
The O'Reilly Pocket Guide forRegular Expressions is a handy reference in these situations.
[^0-9]* - any character except a number followed by one or more of thesame character
([0-9][0-9]*) - two or more numbers followed by one or more of the samecharacter.
- The parenthesis mark it for the \1 in the replace statement.
.* - Any character (except line breaks) followed by one or more of thesame character
| - OR
.* - Any character (except line breaks) followed by one or more of thesame character.
It then replaces it with whatever was found in the parentheticalset.
If no number strings were found by themselves, it returns blank.
--=====================_53542265==.ALT--
Associated Messages, from the most recent to the oldest:
--=====================_53542265==.ALTContent-Type: text/plain; charset="us-ascii"This is a pretty cool tool -http://gskinner.com/RegExr/GJKAt 12:58 PM 10/21/2008, you wrote:>The O'Reilly Pocket Guide for Regular Expressions is a handy reference in these situations.>>[^0-9]* - any character except a number followed by one or more of the same character>([0-9][0-9]*) - two or more numbers followed by one or more of the same character.>- The parenthesis mark it for the \1 in the replace statement.>.* - Any character (except line breaks) followed by one or more of the same character>| - OR>.* - Any character (except line breaks) followed by one or more of the same character.>>It then replaces it with whatever was found in the parenthetical set. >If no number strings were found by themselves, it returns blank.--=====================_53542265==.ALTContent-Type: text/html; charset="us-ascii"
This is a pretty cool tool -
http://gskinner.com/RegExr/
GJK
At 12:58 PM 10/21/2008, you wrote:
The O'Reilly Pocket Guide forRegular Expressions is a handy reference in these situations.
[^0-9]* - any character except a number followed by one or more of thesame character
([0-9][0-9]*) - two or more numbers followed by one or more of the samecharacter.
- The parenthesis mark it for the \1 in the replace statement.
.* - Any character (except line breaks) followed by one or more of thesame character
| - OR
.* - Any character (except line breaks) followed by one or more of thesame character.
It then replaces it with whatever was found in the parentheticalset.
If no number strings were found by themselves, it returns blank.
--=====================_53542265==.ALT--
Gary Krockover
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Quitting WebMerchant ? (1997)
4.5 Upgrade (2003)
FW: WebDNA-Talk searchable? (1997)
[OT] friday pics :-) (2005)
unable to launch acgi in WebCat (1997)
SiteEditPro (1996)
Images generated by a web dna database (2003)
[ShowNext] (2007)
Trouble with carts (2000)
WC2b12: Yes, Formulas.db is for real (1997)
WebCat2b15MacPlugin - [protect] (1997)
carriage returns in data (1997)
Just Testing (1997)
database problem (2003)
The IBC root beer has arrived! (1997)
Proposed FormVariables hierarchy (2000)
Mixing and/or in searches (1998)
ADMIN ACCESS (1999)
ssl support WDNA 5.0 (2003)
Error Log.db --however (1997)