Whatever
 06.06.2016 14:06

Статьи How to get text from within a div tags

Target html:
<div class="Select-option is-focused" data-reactid=".0.1.3.0.2.0.7.0.0.2.0.$option-Account Director">Account Director
<div class="Select-option" data-reactid=".0.1.3.0.2.0.7.0.0.2.0.$option-Account Executive">Account Executive
<div class="Select-option" data-reactid=".0.1.3.0.2.0.7.0.0.2.0.$option-Account Manager">Account Manager
<div class="Select-option" data-reactid=".0.1.3.0.2.0.7.0.0.2.0.$option-Accounting">Accounting
<div class="Select-option" data-reactid=".0.1.3.0.2.0.7.0.0.2.0.$option-Admin">Admin
<div class="Select-option" data-reactid=".0.1.3.0.2.0.7.0.0.2.0.$option-Advisor">Advisor
<div class="Select-option" data-reactid=".0.1.3.0.2.0.7.0.0.2.0.$option-Analyst">Analyst
<div class="Select-option" data-reactid=".0.1.3.0.2.0.7.0.0.2.0.$option-Assistant Media Buyer">Assistant Media Buyer
<div class="Select-option" data-reactid=".0.1.3.0.2.0.7.0.0.2.0.$option-Assistant">Assistant
<div class="Select-option" data-reactid=".0.1.3.0.2.0.7.0.0.2.0.$option-Associate">Associate
<div class="Select-option" data-reactid=".0.1.3.0.2.0.7.0.0.2.0.$option-Attorney">Attorney
<div class="Select-option" data-reactid=".0.1.3.0.2.0.7.0.0.2.0.$option-Automotive Professional">Automotive Professional
<div class="Select-option" data-reactid=".0.1.3.0.2.0.7.0.0.2.0.$option-Board Member">Board Member
<div class="Select-option" data-reactid=".0.1.3.0.2.0.7.0.0.2.0.$option-Board of Directors">Board of Directors
<div class="Select-option" data-reactid=".0.1.3.0.2.0.7.0.0.2.0.$option-Branch">Branch
<div class="Select-option" data-reactid=".0.1.3.0.2.0.7.0.0.2.0.$option-Brand Performance Consultant">Brand Performance Consultant
<div class="Select-option" data-reactid=".0.1.3.0.2.0.7.0.0.2.0.$option-Brand">Brand
...

Open code in Notepad++, then click Ctrl + F, and open tab "Replace".

Insert in field "Search":

<div .*>([^\< ]{0,})

And in field "Replace with":

$1

Then, press "Replace all" and see the result:

Account Director
Account Executive
Account Manager
Accounting
Admin
Advisor
Analyst
Assistant Media Buyer
Assistant
Associate
Attorney
Automotive Professional
Board Member
Board of Directors
Branch
Brand Performance Consultant
Brand
...

Good luck!

Leave a Reply

*