I already asked a question, but it seems my explnation was not clear..
So, I am asking again with more detail info.
<h2 class="sectionTitle">
CORPORATE HEADQUARTERS </h2>
277 Park Avenue<br />
New York, New York 10172
<br /><br />United States<br /><br />
I would like to extract only New York, New York without postal code 10172
And this is another question..
<h2 class="sectionTitle">
BACKGROUND</h2>
He graduated Blabala
</span>
I would like to extract only He graduated Blabla
I have been spending few days, so I feel I could become crazy..
Please help me.. thank you for your kind help in advance.
You still need more detail to write a good regex.
For example, if you want to extract the second line of “CORPORATE HEADQUARTERS” without a postal code that always exists, it can be written like this: