Re: RegEx: find words in random order

"[email protected] [sed-users]" <[email protected]>
Newsgroups gmane.editors.sed.user
Message-ID <[email protected]>
Tim Chase wrote:

> Just FYI, "random" has a technical meaning to most geeks, so I'd
> suggest the word "arbitrary".

Ok, I try to remember that.

> You don't mention what you want to do with the matches.  You could do
> something like

Sorry, I forgot to mention, that I asked here, because here are RegEx
specialists. The RegEx is for another program. 

> which would first filter for lines containing "color" and then, if
> "red\|blue" is found on the same line, print it.

Thank you very much, maybe you could help anyway with a not-sed-solution.

-davidoff12001
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.