🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
8 messages
8 total messages Started by BookWight Wed, 02 Jan 2013 15:47
[Xnews] More Regex help, please
#253062
Author: BookWight
Date: Wed, 02 Jan 2013 15:47
12 lines
1349 bytes
I have a number of subject lines I would like to exclude.  They look like 
this:

 Riooundyda-7899321016-201301020942 - [088/103] - "Riooundyda-7899321016-
201301020942.sfv" yEnc (1/1)


I need an expression which will exclude a string of at least 15 characters 
(capital & lower alpha, numerics, spaces & dashes) when that string shows 
up later in the header surrounded by a quote mark & a period

tia for all helpful ideas
Re: [Xnews] More Regex help, please
#253063
Author: Guy
Date: Wed, 02 Jan 2013 17:30
21 lines
2050 bytes
BookWight wrote:

> I have a number of subject lines I would like to exclude.  
> They look like this:
> 
>  Riooundyda-7899321016-201301020942 - [088/103] - "Riooundyda-7899321016-201301020942.sfv" yEnc (1/1)
> 
> 
> I need an expression which will exclude a string of at least 15
> characters (capital & lower alpha, numerics, spaces & dashes) when
> that string shows up later in the header surrounded by a quote
> mark & a period 
> 


Not your presciption; may work:


^(\w+-\d+-\d{12}).+"(\1)\..*"

Re: [Xnews] More Regex help, please
#253064
Author: Mike Dee
Date: Wed, 02 Jan 2013 19:29
21 lines
2261 bytes
In article <XnsA13C4F336378Abookwight@216.151.153.59>,
 BookWight <Bookwight@publicspam.com> wrote:

> I have a number of subject lines I would like to exclude.  They look like 
> this:
> 
>  Riooundyda-7899321016-201301020942 - [088/103] - "Riooundyda-7899321016-
> 201301020942.sfv" yEnc (1/1)
> 
> 
> I need an expression which will exclude a string of at least 15 characters 
> (capital & lower alpha, numerics, spaces & dashes) when that string shows 
> up later in the header surrounded by a quote mark & a period

1st a question.

If the Subject lines contain the word "Riooundyda" in them, why don't 
you simply filter on that?

-- 
dee
Re: [Xnews] More Regex help, please
#253065
Author: Evertjan.
Date: Wed, 02 Jan 2013 19:33
28 lines
1710 bytes
BookWight wrote on 02 jan 2013 in news.software.readers:

> I have a number of subject lines I would like to exclude.  They look
> like this:
> 
>  Riooundyda-7899321016-201301020942 - [088/103] -
>  "Riooundyda-7899321016- 
> 201301020942.sfv" yEnc (1/1)
> 
> 
> I need an expression which will exclude a string of at least 15
> characters (capital & lower alpha, numerics, spaces & dashes) when
> that string shows up later in the header surrounded by a quote mark &
> a period 
> 
> tia for all helpful ideas


Better specify "exactly" 15 chars and forget about the period.

^([\w\d\s\-]{15})[^"]*"\1

Not tested

-- 
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Re: [Xnews] More Regex help, please
#253075
Author: BookWight
Date: Thu, 03 Jan 2013 00:56
28 lines
2239 bytes
Wandering along the edges of news.software.readers, I found the
following bit of electronic flotsam written by Guy
<Use-Reply-To-Address-Header@[127.1]> in
news:A13C75051142DEAC2E284CEEC009E394A9D7@127.0.0.1: 

> BookWight wrote:
> 
>> I have a number of subject lines I would like to exclude.  
>> They look like this:
>> 
>>  Riooundyda-7899321016-201301020942 - [088/103] -
>>  "Riooundyda-7899321016-201301020942.sfv" yEnc (1/1) 
>> 
>> 
>> I need an expression which will exclude a string of at least 15
>> characters (capital & lower alpha, numerics, spaces & dashes) when
>> that string shows up later in the header surrounded by a quote
>> mark & a period 
>> 
> 
> 
> Not your presciption; may work:
> 
> 
> ^(\w+-\d+-\d{12}).+"(\1)\..*"


This filter seems to be working nicely; thanks!
Re: [Xnews] More Regex help, please
#253076
Author: BookWight
Date: Thu, 03 Jan 2013 01:12
58 lines
2599 bytes
Wandering along the edges of news.software.readers, I found the
following bit of electronic flotsam written by Mike Dee
<emteedee@emteedee.invalid> in
news:emteedee-D9F98F.08295803012013@news.solani.org: 

> In article <XnsA13C4F336378Abookwight@216.151.153.59>,
>  BookWight <Bookwight@publicspam.com> wrote:
> 
>> I have a number of subject lines I would like to exclude.  They look
>> like this:
>> 
>>  Riooundyda-7899321016-201301020942 - [088/103] -
>>  "Riooundyda-7899321016- 
>> 201301020942.sfv" yEnc (1/1)
>> 
>> 
>> I need an expression which will exclude a string of at least 15
>> characters (capital & lower alpha, numerics, spaces & dashes) when
>> that string shows up later in the header surrounded by a quote mark &
>> a period 
> 
> 1st a question.
> 
> If the Subject lines contain the word "Riooundyda" in them, why don't 
> you simply filter on that?
> 

I beg pardon - I should have said '15 random characters . . .'

Some more examples will make the problem more clear -

Dhqaquayay-1456536060-201301030709 - [01/43] - "Dhqaquayay-1456536060-
201301030709.par2" yEnc (1/1)

Hnauhuaoyh-4263436904-201301030540 - [023/110] - "Hnauhuaoyh-4263436904-
201301030540.part22.rar" yEnc (1/79)

Ihadaaiyd-846166801-201301030704 - [25/74] - "Ihadaaiyd-846166801-
201301030704.part24.rar" yEnc (1/24)

Oioqoraaa-989597666-201301030638 - [01/85] - "Oioqoraaa-989597666-
201301030638.par2" yEnc (1/1)



etc., etc











Re: [Xnews] More Regex help, please
#253180
Author: Mike Dee
Date: Thu, 03 Jan 2013 20:41
15 lines
2175 bytes
BookWight <Bookwight@publicspam.com> wrote:

> Mike Dee <emteedee@emteedee.invalid> ditto: 
[...]
> > If the Subject lines contain the word "Riooundyda" in them, why don't 
> > you simply filter on that?
> 
> I beg pardon - I should have said '15 random characters . . .'
> 
> Some more examples will make the problem more clear -

It does. And I see that you have it sorted now too, thanks to Guy.

-- 
dee
Re: [Xnews] More Regex help, please
#254873
Author: John Doe
Date: Mon, 27 May 2013 18:05
10 lines
1226 bytes
"Evertjan." mumbled:


> Better specify "exactly" 15 chars and forget about the period.
> 
> ^([\w\d\s\-]{15})[^"]*"\1
> 
> Not tested
 
Yup, pretty obviously not tested
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads