Click here to get back home

simple regex

 HomeNewsGroups | Search | About
 comp.lang.php    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
simple regex Raistlin Majere 07-09-2008
Get Chitika Premium
Posted by Raistlin Majere on July 9, 2008, 7:51 am
Please log in for more thread options
If there is anything other than:
- between one hundred and ten thousand a-z chars
- between one hundred and ten thousand A-Z chars or
- between one hundred and ten thousand 0-9 chars or
- between one hundred and ten thousand " " chars or
- between one hundred and ten thousand "," chars or
- between one hundred and ten thousand "." chars or
- between one hundred and ten thousand "!" chars or
- between one hundred and ten thousand "?" chars or
- between one hundred and ten thousand \r\n*
the regex should return an error

*as in "testing\r\ntesting"

*not as in
"testing
testing"

I tested ^[a-zA-Z0-9 ,.!?\r\n]$

i tested ^([a-zA-Z0-9 ,.!?]|\r\n)$

It did not work...

How to make it work???

Similar ThreadsPosted
simple egrep - regex question December 15, 2004, 5:46 pm
Simple Regex for Alpha-Numerics? November 3, 2007, 6:14 pm
Simple script for doing a simple photo album and journal? July 19, 2004, 7:10 pm
php regex help September 6, 2004, 11:56 pm
regex December 12, 2004, 6:25 pm
regex help December 29, 2004, 6:45 pm
REGEX help please September 29, 2005, 4:48 am
need help with RegEX January 17, 2006, 10:51 pm
Regex help February 3, 2006, 5:30 am
regex help July 5, 2005, 9:50 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap