<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[multi-word expressions across lines]]></title><description><![CDATA[<p dir="auto">Hello everybody,</p>
<p dir="auto">I hope you are well. I was wondering whether somebody could help me finalise a regular expression I’ve been bogged down with for a while.<br />
I am trying to capture those expressions where gay.* and homosexual.* appear with HIV and AIDS (the order of the two limits can be reversed).</p>
<p dir="auto">The regex I came up with is the following:<br />
\b(gay|homosex|hiv|aids|disease|virus|condition) ([A-Z0-9.,-;/]+ ){1,500}(gay|homosex|hiv|aids|disease|virus|condition)\b</p>
<p dir="auto">but unfortunately few expressions where the virus and the sexuality appear in the text are missed out by the regex. In the small text attached below,  only two expressions are captured (‘AIDS and HIV’ in the title - I don’t understand why this is the case, as I wanted the sexuality and the virus to appear together) and AIDS…homosexual (in the penultimate sentence).</p>
<p dir="auto">Thank you so much for your help and contributions. Looking forward to them,</p>
<p dir="auto">Ivan</p>
<p dir="auto">Latest AIDS and HIV figures for Scotland</p>
<p dir="auto">During April to June 1996, 35 cases of HIV infection were reported to the Scottish Centre for Infection and Environmental Health.Twenty of these were in homosexual/bisexual males, six in injecting drug users and four in persons who were probably infected heterosexually; five cases are as yet undetermined.Thirteen of the cases were from Lothian and thirteen from Greater Glasgow; 29 cases were male.The cumulative total for HIV infected cases to June 30, 1996 is 2,452; 750 (30.6%) are homosexual/bisexual males, 1,102 (44.9%) are injecting drug users and 391 (15.9%) are thought to have been infected heterosexually.The cumulative total of HIV infection for the United Kingdom is now 27,033 of which 23,001 are male and 4,032 female. The majority, 16,542 are homosexual/bisexual males but 5,060 are in the heterosexual non-injecting drug user category.During the second quarter of 1996, 20 cases of AIDS were reported to SCIEH by clinicians, of which 18 were males; ten were homosexual/bisexual males, four injecting drug users and five in the heterosexual category. Ten of the 20 cases were from Lothian, six from Grampian and four from Greater Glasgow. The cumulative total for AIDS cases to June 30, 1996 is 772 of whom 571 have died.309 cases have been in homosexual/bisexual males, 279 in injecting drug users and 114 in heterosexuals. For the UK as a whole, 12,976 cases of AIDS have now been registered, of which 9,344 have been in homosexual/bisexual males.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/11821/multi-word-expressions-across-lines</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Apr 2026 17:06:20 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/11821.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 18 May 2016 18:02:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to multi-word expressions across lines on Mon, 20 Jun 2016 08:45:04 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a>,</p>
<p dir="auto">Only now did I notice that my answer thanking you for your help didn’t go through for some reason. I very much appreciated your help and your advice on my issue.</p>
<p dir="auto">In the end, what I did was to apply a slightly tweaked version of the first regex. I manually disambiguated all the possible combinations and chunks of text that contained the parameters ‘gay,gays, homosexual, Aids, HIV…’ and assessed the relevance and correctness of the results, text by text.</p>
<p dir="auto">Thank you again for your help.</p>
<p dir="auto">Keep in touch and have a good day,</p>
<p dir="auto">Ivan</p>
]]></description><link>https://community.notepad-plus-plus.org/post/16487</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/16487</guid><dc:creator><![CDATA[Ivan Ghio]]></dc:creator><pubDate>Mon, 20 Jun 2016 08:45:04 GMT</pubDate></item><item><title><![CDATA[Reply to multi-word expressions across lines on Sat, 21 May 2016 16:48:35 GMT]]></title><description><![CDATA[<p dir="auto">Hi <strong>Ivan</strong>,</p>
<p dir="auto">Sorry for my <strong>late</strong> reply. I tried to deeply think about your problem :-)</p>
<p dir="auto">I’m wondering… Looking from any <strong>significant</strong> word, with the simple regex <strong><code>gay|homosexual|hiv|aids|disease|virus|condition</code></strong>, in your <strong>second</strong> text, I only found :</p>
<ul>
<li>
<p dir="auto">The three words <strong>Aids</strong>, <strong>virus</strong> and <strong>HIV</strong>, in that <strong>order</strong>, inside the <strong>first</strong> paragraph</p>
</li>
<li>
<p dir="auto">The words <strong>Aids</strong>, <strong>gay</strong> and <strong>disease</strong>, in that <strong>order</strong>, inside the <strong>last</strong> paragraph</p>
</li>
</ul>
<p dir="auto">So, I’m a bit <strong>confused</strong>. Which <strong>relation</strong> would you like to be occured, with the help of <strong>regexes</strong> ?</p>
<p dir="auto">To my mind, the <strong>true</strong> problem is :</p>
<ul>
<li><strong>How many</strong> couples of words do you consider <strong>valuable</strong> to search for ?</li>
<li>Which <strong>minimum/maximum distance</strong> must separate the <strong>two</strong> words, of a couple ?</li>
</ul>
<p dir="auto">It’s quite a <strong>difficult</strong> question, which seems to be more a <strong>linguistic</strong> matter that a <strong>regex</strong> matter ! Even worse, if we consider that you might want a maximum distance <strong>d1</strong> between two words and an <strong>other</strong> maximum distance <strong>d2</strong> between two <strong>other</strong> words !</p>
<p dir="auto">I’m quite <strong>optimist</strong> about building regexes for <strong>specific</strong> purposes. That’s <strong>not</strong> the main problem. As usual, you just need to, <strong>exactly</strong>, define what you expect to :-))</p>
<hr />
<p dir="auto">To fully understand the <strong>complexity</strong> of the <strong>simple</strong> search of <strong>TWO</strong> words, inside any text ( although it could have seemed <strong>easy</strong>, at <strong>first</strong> sight ! ), let’s consider the <strong>example</strong> text below, in one line :</p>
<pre><code>1----A----1----B----1----C----9----D----9----E----1----F----9----G----1----H----1----I----9----J----
</code></pre>
<p dir="auto">Well. Suppose you’re looking for <strong>ranges</strong> of characters, which, <strong>either</strong> :</p>
<ul>
<li>
<p dir="auto"><strong>Begins</strong> with the <strong>1</strong> digit and <strong>ends</strong> with the <strong>9</strong> digit</p>
</li>
<li>
<p dir="auto"><strong>Begins</strong> with the <strong>9</strong> digit and <strong>ends</strong> with the <strong>1</strong> digit</p>
</li>
</ul>
<p dir="auto">Between these <strong>two</strong> limits <strong>1</strong> and <strong>9</strong>, there are <strong>ten</strong> ranges of characters, from zone <strong>A</strong> to zone <strong>J</strong></p>
<p dir="auto"><strong>Several</strong> interpretations are possible :</p>
<ul>
<li>
<p dir="auto">With the regex <strong><code>1\K.*?(?=9)|9\K.*?(?=1)</code></strong>, we obtain <strong>5</strong> ranges of characters, with their <strong>digit</strong> limits, below :</p>
<ul>
<li>Zone <strong>1----A----1----B----1----C----9</strong></li>
<li>Zone <strong>9----D----9----E----1</strong></li>
<li>Zone <strong>1----F----9</strong></li>
<li>Zone <strong>9----G----1</strong></li>
<li>Zone <strong>1----H----1----I----9</strong></li>
</ul>
</li>
<li>
<p dir="auto">With the regex <strong><code>1\K(?=.*?9)|9\K(?=.*?1)</code></strong>, we obtain <strong>9</strong> ranges of characters, with their <strong>digit</strong> limits, below :</p>
<ul>
<li>Zone <strong>1----A----1----B----1----C----9</strong></li>
<li>Zone <strong>1----B----1----C----9</strong></li>
<li>Zone <strong>1----C----9</strong></li>
<li>Zone <strong>9----D----9----E----1</strong></li>
<li>Zone <strong>9----E----1</strong></li>
<li>Zone <strong>1----F----9</strong></li>
<li>Zone <strong>9----G----1</strong></li>
<li>Zone <strong>1----H----1----I----9</strong></li>
<li>Zone <strong>1----I----9</strong></li>
</ul>
</li>
<li>
<p dir="auto">With the regex <strong><code>1\K[^1\r\n]*?(?=9)|9\K[^9\r\n]*?(?=1)</code></strong>, we obtain <strong>5</strong> ranges of characters, with their <strong>digit</strong> limits, below :</p>
<ul>
<li>Zone <strong>1----C----9</strong></li>
<li>Zone <strong>9----E----1</strong></li>
<li>Zone <strong>1----F----9</strong></li>
<li>Zone <strong>9----G----1</strong></li>
<li>Zone <strong>1----I----9</strong></li>
</ul>
</li>
</ul>
<p dir="auto"><strong>Notes</strong> :</p>
<ul>
<li>
<p dir="auto">With the <strong>first</strong> regex, the regex engine matches, from <strong>cursor</strong> location, <strong>either</strong> :</p>
<ul>
<li>The <strong>shortest next</strong> range <strong>1…9</strong></li>
<li>The <strong>shortest next</strong> range <strong>9…1</strong></li>
</ul>
</li>
</ul>
<p dir="auto">So, the regex engine, <strong>alternatively</strong>, find a <strong>1…9</strong> zone, then a <strong>9…1</strong> zone, then a <strong>1…9</strong> zone, and so on…</p>
<ul>
<li>
<p dir="auto">With the <strong>second</strong> regex, the regex engine matches, from <strong>cursor</strong> location, <strong>either</strong> :</p>
<ul>
<li>The <strong>zero length</strong> location, just <strong>after</strong> the next limit <strong>1</strong>, which begins a <strong>1…9</strong> zone</li>
<li>The <strong>zero length</strong> location, just <strong>after</strong> the next limit <strong>9</strong>, which begins a <strong>9…1</strong> zone</li>
</ul>
</li>
<li>
<p dir="auto">With the <strong>third</strong> regex, the regex engine matches, from <strong>cursor</strong> location, <strong>either</strong> :</p>
<ul>
<li>The <strong>shortest next</strong> range <strong>1…9</strong>, which does <strong>NOT</strong> contain any limit <strong>1</strong>, inside that range</li>
<li>The <strong>shortest next</strong> range <strong>9…1</strong>, which does <strong>NOT</strong> contain any limit <strong>9</strong>, inside that range</li>
</ul>
</li>
</ul>
<p dir="auto">So, in that <strong>example</strong>, which kind of search would be <strong>pertinent</strong> ( or a <strong>new</strong> one, different from the <strong>three</strong> above ! ), to your mind ?!</p>
<p dir="auto">See you later !</p>
<p dir="auto">Best regards,</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S.</strong> :</p>
<p dir="auto">If the <strong>example</strong> text is split in <strong>several</strong> lines, as below :</p>
<pre><code>1----A----1---
-B----1----C-
---9----D----9--
--E----1--
--F----9----G---
-1----H--
--1----I---
-9----J----
</code></pre>
<p dir="auto">The <strong>3</strong> regexes, described above, must be <strong>rewritten</strong>, as below :</p>
<p dir="auto"><strong><code>1\K(?s).*?(?=9)|9\K(?s).*?(?=1)</code></strong></p>
<p dir="auto"><strong><code>1\K(?s)(?=.*?9)|9\K(?s)(?=.*?1)</code></strong></p>
<p dir="auto"><strong><code>1\K(?s)[^1]*?(?=9)|9\K(?s)[^9]*?(?=1)</code></strong></p>
]]></description><link>https://community.notepad-plus-plus.org/post/16042</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/16042</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 21 May 2016 16:48:35 GMT</pubDate></item><item><title><![CDATA[Reply to multi-word expressions across lines on Sat, 21 May 2016 09:40:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/195">@guy038</a><br />
Hello guy038,</p>
<p dir="auto">Thank you so much for taking the trouble to reply to my query. This is very helpful and kind of you.</p>
<p dir="auto">I found your expression very useful, as there is no doubt yours is nicer and more powerful.<br />
I ran it across a sample of my corpus and I noticed that the regex captures the text that is comprised within the HIV/AIDS and gay or homosexual. This means that if in the text there is a first reference to HIV/AIDS and halfway through the text a second reference to gay/homosexual (references can be inverted as suggested in your regex too), the entire chunk of text is captured. This however poses a problem because the captures found may not identify a real connection between gay and HIV.</p>
<p dir="auto">That is why I was thinking that maybe I should put some parameters (number of words), but it definitely doesn’t capture everything.</p>
<p dir="auto">I’ve attached a text where the above occurs.</p>
<p dir="auto">Would you recommend using wild cards to capture also gays or homosexuals?</p>
<p dir="auto">Thank you so much for your help and attention. You are really helping me get out of this horrible cul-de-sac!</p>
<p dir="auto">Best wishes,</p>
<p dir="auto">Ivan</p>
<p dir="auto">(PS: the text is in my previous post. Apologies if this message is a repetition of the previous one. I don’t mean to harass you with lots of question. I just thought that you might have not seen the previous reply as a result of me not tagging you. Many thanks again for your generous help!)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/16041</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/16041</guid><dc:creator><![CDATA[Ivan Ghio]]></dc:creator><pubDate>Sat, 21 May 2016 09:40:26 GMT</pubDate></item><item><title><![CDATA[Reply to multi-word expressions across lines on Thu, 19 May 2016 14:46:34 GMT]]></title><description><![CDATA[<p dir="auto">Hello guy038,</p>
<p dir="auto">Thank you so much for taking the trouble to reply to my query. This is very helpful and kind of you.</p>
<p dir="auto">I found your expression very useful, as there is no doubt yours is nicer and more powerful.<br />
I ran it across a sample of my corpus and I noticed that the regex captures the text that is comprised within the HIV/AIDS and gay or homosexual.  This means that if in the text there is a first reference to HIV/AIDS and halfway through the text a second reference to gay/homosexual (references can be inverted as suggested in your regex too), the entire chunk of text is captured.  This however poses a problem because the captures found may not identify a real connection between gay and HIV.</p>
<p dir="auto">That is why I was thinking that maybe I should put some parameters (number of words), but it definitely doesn’t capture everything.</p>
<p dir="auto">I’ve attached a text where the above occurs.</p>
<p dir="auto">Would you recommend using wild cards to capture also gays or homosexuals?</p>
<p dir="auto">Thank you so much for your help and attention. You are really helping me get out of this horrible cul-de-sac!</p>
<p dir="auto">Best wishes,</p>
<p dir="auto">Ivan</p>
<p dir="auto">He was just three months early.’<br />
Eric ‘Eazy-E’ Wright died on March 26, 1995, from complications following Aids -<br />
a combination of a collapsed lung causing heart failure and pneumonia. He was<br />
just 31 and had checked himself into hospital with chronic breathing problems<br />
only a month before, completely unaware he was carrying a fatal virus. He left a<br />
wife, Tomica, whom he married in hospital. They were together for four years and<br />
had two children, Dominic, two, and Deijah, born six months after her father’s<br />
death. All have tested negative for HIV.</p>
<p dir="auto">Long before he passed away, Eric Wright had indeed put Compton on the map. And<br />
as the founding father of gangsta rap, he was arguably one of popular culture’s<br />
most influential figures of the last quarter of the century. As an entrepreneur,<br />
he was an inspiration to millions, and with his death he metamorphosed swiftly<br />
from mogul to martyr. Rarely can such a short life have been so symbolic.</p>
<p dir="auto">Wright failed to stay the distance at Dominguez High School in Compton, and by<br />
the early Eighties was a regular hustler, a dealer in crack and pot. It must<br />
have been the lure of money or excitement that enticed him, for the home<br />
provided for him and his younger brother and sister was a stable one. His mother<br />
was a Montessori teacher, his father, a retired post office wo rker and sometime<br />
musician who had a big hit with the 103rd Street Rhythm Band back in the early<br />
Seventies with Express Yourself, later covered by NWA. (Both are still alive,<br />
though his father recently suffered a stroke.) Some of the streets in Compton<br />
are strangely quaint: rows of polite bungalows fronted by porches and lawns<br />
enriched by sub-tropical weather. Some are unremittingly grim, and the main<br />
thoroughfare, Long Beach Boulevard, is a sorry strip of boarded-up businesses,<br />
dishevelled lots, soiled fast-food joints and two-bit stores. Wright came from a<br />
pleasanter part, and it may seem he was self-consciously ‘dropping down’ by his<br />
first choice of career. But with US ghettos it is wise to recall the phrase, ‘it<br />
takes a village to raise a child’. A kid is part of the street environment, like<br />
it or not. And Eric Wright obviously did.</p>
<p dir="auto">A childhood friend, Big Man (he declined to give his real name), who bears some<br />
resemblance to the splendidly sonorous and rotund singer Barry White - though<br />
his voice is a few notes higher and his girth a couple of feet narrower -<br />
remembers: ‘Unlike Eric, I went all the way through school.’ His smile broadens:<br />
‘Right in the front, right out the back, I never stayed for a class, though I<br />
did have a dice game third period every day. I didn’t run into him on campus too<br />
much.’ As an adult, Wright was so small - a slender 5ft 4in - that everyone<br />
presumed he was a drop -out kid. Most didn’t know his real age until he died.<br />
But he had presence - the presence of money, even when he didn’t have that much.<br />
People noticed him strutting down the street. He wore the same trademark clothes<br />
as the other home boys, but less baggy, with more style. To rib him, close<br />
friends called him ‘casual’. Perhaps his first vehicle, a psychedelically<br />
-painted truck, wasn’t so hip, but Eric - he was always Eric or Little Man,<br />
never Eazy, to his friends - had respect.</p>
<p dir="auto">He started organising parties with a friend, Andre Young, aka Dr Dre, who had<br />
real talent, and was a member of the World Class Wreckin’ Cru with Antoine<br />
Carraby, aka DJ Yella. Dre began telling Wright what he knew of the music<br />
business. Smart enough to know drug dealing couldn’t last forever, Eric wanted<br />
out. Towards the end of 1985 he took, and passed, the test to join the post<br />
office. But he had also seen that music, like drugs, offered power, and decided<br />
to act.</p>
<p dir="auto">At the time west coast rap was lame, party stuff about the good times - where<br />
people wanted to be, where they would be soon.  It came a poor second to the<br />
east coast, where hip-hop had begun in the late Seventies and burst across the<br />
world with the Sugar Hill Gang’s Rapper’s Delight.</p>
<p dir="auto">In the spring of 1986, aged 22, Wright assembled the best talent in the 'hood:<br />
Dre, Yella, MC Ren (Lorenzo Patterson) and Ice Cube (O’Shea Jackson). He paid<br />
for studio time and urged Cube, the best rapper and songwriter, to write<br />
something ‘real’, something about the gangs, about the life he’d been leading.<br />
The result was Boyz 'N The Hood (later the title of a film) and the birth of<br />
NWA. Wright paid $ 7,000 for 10,000 12-inch records, and he and Dre would drive<br />
around - by now in a burgundy Suzuki Samurai - selling the discs at swap-meets,<br />
a cross between a flea market and a car-boot sale. By word of mouth alone, the<br />
record sold 500,000 copies.</p>
<p dir="auto">The next year, Wright hooked up with Jerry Heller, a music business veteran, who<br />
recognised this hardcore stuff as the next big thing. He took Wright to Priority<br />
Records, where the boy from the 'hood talked his way into a unique deal:<br />
Priority would distribute records on Wright’s own label, Ruthless, and Wright<br />
would have, for a newcomer, an unheard of piece of the action.</p>
<p dir="auto">In 1988, Eazy-E’s first solo album, Eazy Duz It, and NWA’s Straight Outta<br />
Compton, sold more than 5.5 million copies between them - without a single play<br />
on radio or television. Suddenly they were stars - a lifestyle that’s easy to<br />
slip into in LA.  Eazy bought a $ 1 million house in a cul-de-sac in Westlake, a<br />
suburb predominated by retired people. Dre and Yella had a house next door and<br />
they shared a party house over the road. By night, they were the people everyone<br />
wanted to know.</p>
<p dir="auto">As a rapper, Wright had a distinctive, high-pitched, brattish voice, but was not<br />
one of the very best. It could take him hours to get his part down right. Nor<br />
was he a great songwriter. But he cemented NWA and determined their direction.<br />
MC Ren recalls: ‘It just wouldn’t have happened without him. Even though he<br />
wasn’t writing - it was his voice that grabbed everybody. And he had the idea of<br />
putting that shit together, that all-star group. He saw something I didn’t see<br />
and that shit just clicked. Others were doing something like it but not to the<br />
full depth of what we were doing. It shocked a lot of motherfuckers.’ Even the<br />
group’s full name - Niggaz With Attitude - was a challenge to a liberal<br />
mainstream that had shunned the n-word in the post-Martin Luther King era. Now<br />
it was thrust back in their white faces, worn as a badge of honour, a viciously<br />
ironic statement that, dammit, young blacks still felt they were treated like<br />
niggers. Gangsta rap, like all black American music, was rooted in the Blues -<br />
with its lyrical expressiveness and rhythmic foundations - but added to the<br />
plaintiveness of old was an angry, cussing criticism of authority that<br />
represented a new departure.</p>
<p dir="auto">NWA, and the genre they spawned, represented a nightmare for the respectable<br />
world - and many feminists: a live and kicking validation of foul language,<br />
violence and misogyny. They were reprimanded by the FBI over their song Fuck Tha<br />
Police on Straight Outta Compton, and joined a line of demonised performers that<br />
began with Elvis and continued through Jimi Hendrix, Sly Stone, the Rolling<br />
Stones and the Sex Pistols. With their baseball caps, baggies and snow-white<br />
trainers, they influenced fashion across the world. Their tales of drugs, police<br />
intimidation, gang violence and alienation jump-started a new brand of American<br />
film-making and told the world of black urban angst long before the Rodney King<br />
beating and subsequent LA riots.  America’s political leaders had to listen.<br />
Attitude had arrived.</p>
<p dir="auto">By the time NWA’s 1991 album Efil4Zaggin (Niggaz4Life spelt backwards) became<br />
the first rap album to top the US Billboard charts, middle-class white kids<br />
across America, and indeed Europe, were draping themselves in polyester cotton,<br />
greeting each other with high fives and ‘Yo!’, and were fully acquainted<br />
vicariously with the hip Hades of motherfuckers, bitches and hoes.</p>
<p dir="auto">Ruthless Records artists have sold more than 28 million records, with 21<br />
recordings reaching gold or platinum status. After NWA split, Ice Cube and Dr<br />
Dre soared. Eazy-E’s final album, Str8 Off Tha Streets Of Muthaphu**in Compton,<br />
which is released on Monday, is sure to hit the top back home. Priority Records<br />
(now separate from Ruthless) has meanwhile produced a greatest hits package,<br />
Eternal E, also available here.</p>
<p dir="auto">Wright once quoted his personal wealth at $ 60 million and Ruthless’s value at $<br />
20 million. For a time, it was one of the most successful independent labels of<br />
all time, and inspired many imitators, many rivals. For black Americans, Wright<br />
became a beacon of entrepreneurship, even more so than Russell Simmons of Def-<br />
Jam Records on the east coast, because no one, but no one, had ever come off the<br />
streets, turned their back on dealing dope and made it big.</p>
<p dir="auto">But within days of his death, a struggle for his legacy was underway. Michael<br />
Klein, the business manager at Ruthless, disputed Wright’s will which left the<br />
company to Tomica, claiming Wright handed half of it over to him in 1992.<br />
Tomica, a former assistant to the chairman of Motown, promised her dying husband<br />
she would keep the company alive. Klein is also questioning Wright’s state of<br />
mind when he married and the validity of making his wife a trustee of his<br />
estate.</p>
<p dir="auto">‘Tomica has the ambition and the ability to run the company. She has worked in<br />
the business and knows the ins and outs and she is a bright woman, she’s no<br />
airhead,’ says Ernie Singleton, formerly head of MCA’s black music division who<br />
was brought in as acting president of Ruthless by the California Superior<br />
Courts.</p>
<p dir="auto">‘It was a real love affair,’ says a family friend. ‘She certainly loved him. And<br />
Eric, he was obviously no goody-two shoes but he was extremely devoted. He<br />
trusted her judgment.’ Ruthless is now back up on its feet - the doors were<br />
padlocked for several weeks last spring after things started disappearing - but<br />
the legal grind could, according to music industry experts, take another three<br />
years. Ruthless may be whittled away in lawyers’ fees, taking Wright’s dream of<br />
a large-scale, multi-media black company with it.</p>
<p dir="auto">In America, there isn’t the pressure there is here on artists to produce fresh<br />
sounds. Fans stay loyal. And from Eazy they expected the familiar rough stuff,<br />
which largely explains why the subject matter on the first Eazy-E album and the<br />
last is so similar, though musically the latter is richer, more layered, bumping<br />
along in a smooth groove. Alongside the usual bravado and gang tales, there are<br />
tracks such as Nuts On Ya Chin and Lickin, Suckin And Fuckin. The heavy sex<br />
content of Eazy’s raps, the brazen assertion of sexual prowess, the arrogant<br />
expectation of female submission, lend a grim irony to his death.</p>
<p dir="auto">It almost goes without saying that he came from an environment where Aids is<br />
very largely viewed as a gay disease. ‘It does have that image,’ says Cassandra<br />
Ware, vice-president of Ruthless Records and a friend of Wright’s before she<br />
arrived at the company. 'Because of that heavy machismo, like, ‘never will I<br />
take it in the butt, so I’ll be all right’. And Eric was one of those machismos</p>
<ul>
<li>‘I’m a star, killer, handsome buck of a man. Any woman who comes my way I’ll<br />
ride her’ - and it happened.’</li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/16008</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/16008</guid><dc:creator><![CDATA[Ivan Ghio]]></dc:creator><pubDate>Thu, 19 May 2016 14:46:34 GMT</pubDate></item><item><title><![CDATA[Reply to multi-word expressions across lines on Wed, 18 May 2016 20:45:37 GMT]]></title><description><![CDATA[<p dir="auto">Hello <strong>Ivan</strong>,</p>
<p dir="auto">Probably, a nicer <strong>regex</strong> to achieve what you’re looking for, would be :</p>
<p dir="auto"><strong><code>(?i)(HIV|AIDS).+?(gay|homosexual)|(?2).+?(?1)</code></strong></p>
<p dir="auto"><strong>Notes</strong> :</p>
<ul>
<li>
<p dir="auto">First of all, the <strong>modifier</strong> <strong><code>(?i)</code></strong> forces the search to be case <strong>insensitive</strong>. Then :</p>
</li>
<li>
<p dir="auto">The part <strong><code>(HIV|AIDS)</code></strong> looks for <strong>one</strong> of the <strong>two possible</strong> names of that disease</p>
</li>
<li>
<p dir="auto">The part <strong><code>(gay|homosexual)</code></strong> tries to match <strong>one</strong> of the names, for that sexuality</p>
</li>
<li>
<p dir="auto">The part <strong><code>.+?</code></strong> represents the <strong>shortest</strong> non null amount of text, between the strings <strong>HIV</strong> or <strong>AIDS</strong> AND <strong>gay</strong> or <strong>homosexual</strong> !</p>
</li>
</ul>
<p dir="auto">Else :</p>
<ul>
<li>
<p dir="auto">The subroutine call <strong><code>(?2)</code></strong> refers to the <strong>group 2</strong> <strong><code>(gay|homosexual)</code></strong></p>
</li>
<li>
<p dir="auto">The subroutine <strong><code>call (?1)</code></strong> refers to the <strong>group 1</strong> <strong><code>(HIV|AIDS)</code></strong></p>
</li>
<li>
<p dir="auto">Again, the part <strong><code>.+?</code></strong> represents the <strong>shortest</strong> non null amount of text between the strings <strong>gay</strong> or <strong>homosexual</strong> AND the strings <strong>HIV</strong> or <strong>AIDS</strong> !</p>
</li>
</ul>
<p dir="auto">With <strong>your</strong> given text, to which I <strong>added</strong> the simple sentence, below, in order to <strong>test</strong> the <strong>second</strong> case :</p>
<pre><code>The cumulative total is 750 homosexual/bisexual males, infected by the HIV, on June 30, 1996
</code></pre>
<p dir="auto">I obtained the <strong>7</strong> captures of text, below :</p>
<pre><code>1    HIV infection were reported to the Scottish Centre for Infection and Environmental Health.Twenty of these were in homosexual
2    HIV infected cases to June 30, 1996 is 2,452; 750 (30.6%) are homosexual
3    HIV infection for the United Kingdom is now 27,033 of which 23,001 are male and 4,032 female. The majority, 16,542 are homosexual
4    AIDS were reported to SCIEH by clinicians, of which 18 were males; ten were homosexual
5    AIDS cases to June 30, 1996 is 772 of whom 571 have died.309 cases have been in homosexual
6    AIDS have now been registered, of which 9,344 have been in homosexual
7    homosexual/bisexual males, infected by the HIV
</code></pre>
<p dir="auto">Hope that this <strong>slicing</strong> is what you’re looking for :-)</p>
<p dir="auto">Best regards,</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>P.S</strong> :</p>
<ul>
<li>
<p dir="auto">The quantifiers <strong><code>*</code></strong> , <strong><code>+</code></strong> , <strong><code>?</code></strong> , <strong><code>{n,m}</code></strong> and <strong><code>{n,}</code></strong> are considered as <strong>greedy</strong> quantifiers</p>
</li>
<li>
<p dir="auto">The quantifiers <strong><code>*?</code></strong> , <strong><code>+?</code></strong> , <strong><code>??</code></strong> , <strong><code>{n,m}?</code></strong> and <strong><code>{n,}?</code></strong> are considered as <strong>lazy</strong> quantifiers</p>
</li>
</ul>
<p dir="auto">Some examples :</p>
<p dir="auto">Given the <strong>subject</strong> string :  <strong>aaaaaaa333aaaaaaa33333aaaaaaa33333aaaaaaaa333aaaaaaa</strong></p>
<ul>
<li>
<p dir="auto">The regex <strong><code>a.+3</code></strong> captures the string <strong>aaaaaaa333aaaaaaa33333aaaaaaa33333aaaaaaaa333</strong></p>
</li>
<li>
<p dir="auto">The regex <strong><code>a.+?3</code></strong> captures the string <strong>aaaaaaa3</strong></p>
</li>
<li>
<p dir="auto">The regex <strong><code>a.+333</code></strong> captures the string <strong>aaaaaaa333aaaaaaa33333aaaaaaa33333aaaaaaaa333</strong></p>
</li>
<li>
<p dir="auto">The regex <strong><code>a.+?333</code></strong> captures the string <strong>aaaaaaa333</strong></p>
</li>
<li>
<p dir="auto">The regex <strong><code>a.+33333</code></strong> captures the string <strong>aaaaaaa333aaaaaaa33333aaaaaaa33333</strong></p>
</li>
<li>
<p dir="auto">The regex <strong><code>a.+?33333</code></strong> captures the string <strong>aaaaaaa333aaaaaaa33333</strong></p>
</li>
</ul>
]]></description><link>https://community.notepad-plus-plus.org/post/16001</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/16001</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 18 May 2016 20:45:37 GMT</pubDate></item></channel></rss>