[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Small regexp question

benjohn

3/12/2006 11:27:00 AM

Stefan Mahlitz said:


> benjohn@fysh.org wrote:
>
>> I was playing with regexp yesterday, and wanted to have a pattern
>> match
>> over multiple lines, but couldn't see how that is done (A friend
>> wanted a
>> simple way of stripping out c comments, and they can over multiple
>> lines,
>> of course). Could someone give me a hint on that?
>>
>
> You can use
>
> /myregexp/m
>
> but I'm not sure where this is documented.
>

Which is exactly what I was after, thanks.

The list of characters that you can slap on to the end are (cribbed from
the Nutshell):

i => case-insensitive
o => substitute only once.
x => ignores whitespace so that you can put comments in to a regex.
m => matches over multiple lines - newlines are treated as any other
character.

And you can use combinations too, if you fancy.

Cheers Stefan,
Benjohn


17 Answers

WhiteWolf! @iol.ie

12/1/2010 2:07:00 PM

0

On Mon, 29 Nov 2010 09:39:51 -0500, "conwaycaine" <conwaycaine@bellsouth.net>
wrote:

>
>"WhiteWolf! @iol.ie" <rayh(removespamblocker> wrote in message
>news:gib7f6dacnk38fhkn60068ja4dbi0epmc1@4ax.com...
>> On Sun, 28 Nov 2010 12:22:54 -0500, "conwaycaine"
>> <conwaycaine@bellsouth.net>
>>>"EX_OWM" <allthespamyoulike@gmail.com> wrote in message
>>>news:8ld6b1F71qU1@mid.individual.net...
>>>> soupdragon wrote:
>>>
>>>I can only assume you two disagree with Ray's politics.
>>>
>>
>> Conway, if I say the sky is blue, they'd argue it was red... Especially
>> OWM and
>> his brother Eugene...
>
>These guys are beating the living hell out of the "Extremist TP" Lambeg.
>Yet they've not a shred of evidence to indicate the Tea Party is, as they
>claim, filled to overflowing with extremists
>They hold up a few nuttters and their rants as typical of the entire group.
>Nothing but a blatant attempt to prejudice the public.
>

Correct... Now if I or someone points out a few nutters in their ranks... They
all start whining about "painting the whole organization with the same brush"
and now I'm so intolerant that I judge the entire movement by the actions of a
few...

Hypocrits the lot of them!

Ray

--
Rubio for President! (2012)

Glenn Beck Celebrates 2010 election!
http://www.youtube.com/watch?v=G...

Obama National Anthem
http://www.youtube.com/watch?v=l...

Join The Tea Party!
http://www.teapartypat...

Socialism is a philosophy of failure, the creed of
ignorance, and the gospel of envy, its inherent
virtue is the equal sharing of misery.
--Winston Churchill

WhiteWolf! @iol.ie

12/1/2010 2:07:00 PM

0

On Tue, 30 Nov 2010 18:22:32 -0500, "Ray O'Hara" <raymond-ohara@hotmail.com>
wrote:

>
>"conwaycaine" <conwaycaine@bellsouth.net> wrote in message
>news:9Y-dnQbAcI75iGjRnZ2dnUVZ_o-dnZ2d@giganews.com...
>>
>> "Ray O'Hara" <raymond-ohara@hotmail.com> wrote in message
>> news:id0riv$ul1$1@news.eternal-september.org...
>>> "conwaycaine" <conwaycaine@bellsouth.net> wrote in message
>>>> "WhiteWolf! @iol.ie" <rayh(removespamblocker> wrote in message
>>>>> <conwaycaine@bellsouth.net>
>>>>>>"EX_OWM" <allthespamyoulike@gmail.com> wrote in message
>>>>>>> soupdragon wrote:
>>>>>>
>>>>>>I can only assume you two disagree with Ray's politics.
>>>>>>
>>>>>
>>>>> Conway, if I say the sky is blue, they'd argue it was red... Especially
>>>>> OWM and
>>>>> his brother Eugene...
>>>>
>>>> These guys are beating the living hell out of the "Extremist TP" Lambeg.
>>>> Yet they've not a shred of evidence to indicate the Tea Party is, as
>>>> they claim, filled to overflowing with extremists
>>>> They hold up a few nuttters and their rants as typical of the entire
>>>> group.
>>>> Nothing but a blatant attempt to prejudice the public.
>>>>
>>>>
>>>>
>>>
>>> yeah, no evidence except that provided by the teabaggers themselves.
>>
>> Your canard hardly qualifies as evidence.
>>
>>> Cornhole, you're dumber than wolfie
>>
>> So....anyone who disagrees with you is dumb.
>> Anyone who agrees with you is smart.
>> When did that definition make it into the textbooks?
>>
>>
>
> if you've seen any of the mass teabaggings the fact they are extremists is
>quite evident.

Cite evidence that Tea Party Patriots, Tea Party Nation or Tea Party Express (to
name just 3 of the better known groups) are extremist

>yeah. normal rational folks show up at rallies carrying guns.
>you are a moron.
>

On Tuesday, MSNBC?s Contessa Brewer fretted over health care reform protesters
legally carrying guns: "A man at a pro-health care reform rally...wore a
semiautomatic assault rifle on his shoulder and a pistol on his hip....there are
questions about whether this has racial overtones....white people showing up
with guns." Brewer failed to mention the man she described was black.

Ray
--
Rubio for President! (2012)

Glenn Beck Celebrates 2010 election!
http://www.youtube.com/watch?v=G...

Obama National Anthem
http://www.youtube.com/watch?v=l...

Join The Tea Party!
http://www.teapartypat...

Socialism is a philosophy of failure, the creed of
ignorance, and the gospel of envy, its inherent
virtue is the equal sharing of misery.
--Winston Churchill

Fred J. McCall

12/1/2010 2:25:00 PM

0

WhiteWolf! <rayh(removespamblocker>@iol.ie wrote:

>
>Cite evidence that Tea Party Patriots, Tea Party Nation or Tea Party Express (to
>name just 3 of the better known groups) are extremist
>

Just need to open your eyes and look at their actual positions on
issues and the folks they support, Ray.

But you won't.

--
"Some people get lost in thought because it's such unfamiliar
territory."
--G. Behn

conwaycaine

12/1/2010 2:58:00 PM

0


"Ray O'Hara" <raymond-ohara@hotmail.com> wrote in message
news:id40vn$1d3$1@news.eternal-september.org...
> "conwaycaine" <conwaycaine@bellsouth.net> wrote in message
>>> yeah, no evidence except that provided by the teabaggers themselves.
>>
>> Your canard hardly qualifies as evidence.
>>
>>> Cornhole, you're dumber than wolfie
>>
>> So....anyone who disagrees with you is dumb.
>> Anyone who agrees with you is smart.
>> When did that definition make it into the textbooks?
>>
>>
>
> if you've seen any of the mass teabaggings the fact they are extremists is
> quite evident.

I don't see that.
I see a group of people with quite a different agenda that that of an
extremist group.
Anyway, I hold with the Libertarian view more than any other.

> yeah. normal rational folks show up at rallies carrying guns.
> you are a moron.

Well, we are a bit short on Blackthorns in this country.


conwaycaine

12/1/2010 2:58:00 PM

0


"HardySpicer" <gyansorova@gmail.com> wrote in message
news:3ff5c741-2c3e-4ac3-8832-dbceced68366@f20g2000prn.googlegroups.com...
On Dec 1, 12:22 pm, "Ray O'Hara" <raymond-oh...@hotmail.com> wrote:
> "conwaycaine" <conwayca...@bellsouth.net> wrote in message

> if you've seen any of the mass teabaggings the fact they are extremists is
> quite evident.
> yeah. normal rational folks show up at rallies carrying guns.
> you are a moron.

He is a moron. But not any old moron, he is our very own moron from
deep in the mountain country..

***
Every newsgroup needs a moron or two.
Livens things up, so it does.


conwaycaine

12/1/2010 2:59:00 PM

0


"Fred J. McCall" <fjmccall@gmail.com> wrote in message
news:78fbf6pigv9dpu3stnnq6rai6aupjdvt8k@4ax.com...
> "Ray O'Hara" <raymond-ohara@hotmail.com> wrote:
>
>>
>>yeah. normal rational folks show up at rallies carrying guns.
>>
>
> Well, actually, they do.
>
>>
>>you are a moron.
>>
>
> He's not the one who never heard of the 2nd Amendment.

I here that Heid is piling up the paving stones in front of his house, the
better to advance the revolution.


conwaycaine

12/1/2010 3:00:00 PM

0


"Ray O'Hara" <raymond-ohara@hotmail.com> wrote in message
news:id4fis$pvg$1@news.eternal-september.org...
>
> "Fred J. McCall" <fjmccall@gmail.com> wrote in message
> news:78fbf6pigv9dpu3stnnq6rai6aupjdvt8k@4ax.com...
>> "Ray O'Hara" <raymond-ohara@hotmail.com> wrote:
>>
>>>
>>>yeah. normal rational folks show up at rallies carrying guns.
>>>
>>
>> Well, actually, they do.
>>
>>>
>>>you are a moron.
>>>
>>
>> He's not the one who never heard of the 2nd Amendment.
>
>
> one still is expected to act responsibly.

And that is all I ask from Pubs or Dems.
After all, we do have to live together if we are to survive as a nation.


conwaycaine

12/1/2010 3:06:00 PM

0


"EX_OWM" <allthespamyoulike@gmail.com> wrote in message
news:8lm8joF14uU1@mid.individual.net...
> conwaycaine wrote:
>> "WhiteWolf! @iol.ie" <rayh(removespamblocker> wrote in message

>> These guys are beating the living hell out of the "Extremist TP"
>> Lambeg. Yet they've not a shred of evidence to indicate the Tea Party
>> is, as they claim, filled to overflowing with extremists
>> They hold up a few nuttters and their rants as typical of the entire
>> group. Nothing but a blatant attempt to prejudice the public.
>
> What had the Tea Party to do with the march in Dublin ?

They are wearing bowlers and banging drums in Baile A'tha Cliath?
The world is turned upside down.

> BTW, I think you'll find it rather difficult to find anything that either
> Eugene or I have said about the Tea Party. I know fuck all about the Tea
> Party; probably like most users here , I want to know fuck all about the
> Tea Party, the Tea Party has fuck all to do with Irish culture.

The word is "Feck".
Please remember that little auld ladies read these posts.


conwaycaine

12/1/2010 3:10:00 PM

0


"WhiteWolf! @iol.ie" <rayh(removespamblocker> wrote in message
news:lujcf6domnt0cv0jai7r8javglpijtsjpv@4ax.com...
> On Mon, 29 Nov 2010 09:39:51 -0500, "conwaycaine"
> <conwaycaine@bellsouth.net>
...
>>
>>These guys are beating the living hell out of the "Extremist TP" Lambeg.
>>Yet they've not a shred of evidence to indicate the Tea Party is, as they
>>claim, filled to overflowing with extremists
>>They hold up a few nuttters and their rants as typical of the entire
>>group.
>>Nothing but a blatant attempt to prejudice the public.
>>
>
> Correct... Now if I or someone points out a few nutters in their ranks...
> They
> all start whining about "painting the whole organization with the same
> brush"
> and now I'm so intolerant that I judge the entire movement by the actions
> of a
> few...
>
> Hypocrits the lot of them!

"Let's don't debate the issues. Let's ATTACK!!!"
A hell of a way to run a government, I'm thinking.
The Tea Party is serving a useful purpose which is getting back to trying to
run a functional country.


Peter Jason

12/1/2010 8:45:00 PM

0


"conwaycaine" <conwaycaine@bellsouth.net> wrote in message
news:J4mdnYAfQbnX_2vRnZ2dnUVZ_gOdnZ2d@giganews.com...
>
> "Fred J. McCall" <fjmccall@gmail.com> wrote in message
> news:78fbf6pigv9dpu3stnnq6rai6aupjdvt8k@4ax.com...
>> "Ray O'Hara" <raymond-ohara@hotmail.com> wrote:
>>
>>>
>>>yeah. normal rational folks show up at rallies carrying
>>>guns.
>>>
>>
>> Well, actually, they do.
>>
>>>
>>>you are a moron.
>>>
>>
>> He's not the one who never heard of the 2nd Amendment.
>
> I here that Heid is piling up the paving stones in front
> of his house, the better to advance the revolution.


That is a good start. Me, I'm welding boiler plate over
the windows for the coming anarchies and revolutions, though
it's hard to see how the Great Unwashed could be any more
revolting!