Article View: news.software.readers
Article #160424Re: [slrn] Need help with score regexp
From: Faux_Pseudo
Date: Sat, 08 Jan 2005 00:40
Date: Sat, 08 Jan 2005 00:40
39 lines
2395 bytes
2395 bytes
_.-In news.software.readers, DC wrote the following -._
> I am trying to devise a regular expression that will match x or more
> consecutive occurrences of any character, except digits.
These are all basic regexes.
> Subject: Heeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeelp!
All of these are untested.
Subject: .{4,}
That will match 4 or more of anything.
Subject: [[:alnum:]]{4}
That will match any a-z and 0-9
> - 4 or more special chars like ~!@#$%^&*()-_=+[]{}|\/;:'"`<>,.?
Subject: [~!@#\$\%^&\*()-_=+\[\]{}|\\/;:'"`<>,\.\?]{4,}
I /think/ that will do it. But I may not have all the escapes that
are really needed.
> PS: A link to an excellent online reference/tutorial for writing s-lang
> regexps would be very welcome, also.
<url:www.macroexpressions.com/doc/snob/snobre.htm>
I think it might be time to rewrite the score FAQ for slrn. It is
good for basics but there should be an advanced score FAQ.
Yes, yes I know. I can write it. But not today.
--
.-')) asciipr0n.com/fp ('-. | It's a damn poor mind that
' ..- .:" ) ( ":. -.. ' | can only think of one way to
((,,_;'.;' UIN=66618055 ';. ';_,,)) | spell a word.
((_.YIM=Faux_Pseudo :._)) | - Andrew Jackson
Technical Details
Message-ID:
<9_FDd.21443$sf5.13540@lakeread05>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!wn13feed!worldnet.att.net!199.218.7.141!news.glorb.com!newsswing.news.prodigy.com!newscon06.news.prodigy.com!prodigy.net!peer02.cox.net!cox.net!p01!lakeread05.POSTED!53ab2750!not-for-mailReferences:
<slrnctrh9i.hsh.dcmoose@moosemeat.ca.INVALID>Show Full Headers
Complete Article Headers
Message-ID: <9_FDd.21443$sf5.13540@lakeread05> Subject: Re: [slrn] Need help with score regexp Date: Sat, 08 Jan 2005 00:40:37 GMT From: Faux_Pseudo <Faux_Pseudo@yahoo.comERCIAL> References: <slrnctrh9i.hsh.dcmoose@moosemeat.ca.INVALID> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!wn13feed!worldnet.att.net!199.218.7.141!news.glorb.com!newsswing.news.prodigy.com!newscon06.news.prodigy.com!prodigy.net!peer02.cox.net!cox.net!p01!lakeread05.POSTED!53ab2750!not-for-mail Newsgroups: news.software.readers Reply-To: Faux_Pseudo@yahoo.comERCIAL User-Agent: slrn/0.9.8.0 (Linux) Lines: 39 NNTP-Posting-Host: 24.254.219.214 X-Complaints-To: abuse@cox.net X-Trace: lakeread05 1105144837 24.254.219.214 (Fri, 07 Jan 2005 19:40:37 EST) NNTP-Posting-Date: Fri, 07 Jan 2005 19:40:37 EST Organization: Cox Communications