http://www.perlmonks.org?node_id=1041390

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello Monks,

I have a question regarding the clean up of some paragraphs. Is there any universal way to clean up these junks, so that I can can apply the universal method in all the cases. I have a lot of paragraphs like these but not all are the same, but they all contain some type of junks like these. The examples are as below,

$data = '%3CP style=%22MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px%22%3EAbbVi +e (NYSE:ABBV) is a global, research-based biopharmaceutical company formed in 2013 following separation from Abbott. AbbVie combines th +e focus and passion of a leading-edge biotech with the expertise and capabilities of a long-established pharmaceutical leader to develop and market advanced therapies that address some of the world’s most complex and serious diseases. In 2013, AbbVie will employ approximately 21,000 people worldwide and markets medicines in more than 170 countries.%3C/P%3E%0A%3CP style=%22MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px%22%3E%26nbsp;%3C/P%3E%0A%3CDIV%3EPRIMARY FUNCTIO +N / PRIMARY GOALS / OBJECTIVES:%3C/DIV%3E%0A%3CUL%3E%0A%3CLI%3ESupervis +es the determination of a client area application systems requirements for new or modified application programs, the preparation of system +s specifications and the development, testing and implementation of efficient, cost effective applications solutions.%26nbsp; %0A%3CLI%3EActs as expert technical resource to development staff.%26nbsp; %0A%3CLI%3ESupervise, manage and prioritize as neede +d the weekly and monthly data warehousing operations, managing a vend +or managed services team that performs the operational tasks.%26nbsp; %0A%3CLI%3EPartner with primary business clients to prioritize the operations schedule when normal operations and schedules are impacted.%3C/LI%3E%3C/UL%3E%0A%3CDIV%3E%3CBR%3ECORE JOB RESPONSIBILITIES:%3C/DIV%3E%0A%3CUL%3E%0A%3CLI%3EResponsible for compliance with applicable Corporate and Divisional Policies and procedures. %0A%3CLI%3EUnderstands organization%27s vision, goals a +nd strategies. Aligns teams priorities appropriately and determines te +ams critical success factors.%26nbsp; Identify connections between business processes and/or technical processes and ensure integratio +n and touchpoints align appropriately to fulfill the project goals an +d the overall strategies of AbbVie. %0A%3CLI%3EDefine and report on k +ey operational performance metrics. %0A%3CLI%3EEngage with multiple business and technical teams to maintain compliance to AbbVie Best Specialty processes and controls.%26nbsp; %0A%3CLI%3EManages change and encourages innovation.%26nbsp; Open to new ideas. %0A%3CLI%3EUnderstands clients business needs and requirements. Resolves issues in an appropriate and timely manner. %0A%3CLI%3EMay negotiate, secures, oversee %26amp; ensure that resources are available to meet the daily operational demands of the area. %0A%3CLI%3EResponsible for all aspects of people leadership; settin +g expectations, coaching, counseling, developing, evaluating, feedbac +k, hiring, discipline and separations.%26nbsp; Determine necessary mix + of skill set. %0A%3CLI%3EConfronts and deals with employees issues in +a constructive and timely manner. %0A%3CLI%3EEstablish and maintain high-quality relationships with all levels across the company and w +ith external partners.%3C/LI%3E%3C/UL%3E'

This one is over.

Next one is like below,

$data = '%3CP style=%22MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px%22%3E%26nbsp;%3C/P%3E%0A%3CUL%3E%0A%3CLI%3EBachelor%27s degree +or equivalent experience, preferably in software engineering, business +, information systems, or a discipline closely related to the client area served. %0A%3CLI%3E7-10 years overall experience %0A%3CLI%3EIT +IL or related disciplines preferred. %0A%3CLI%3EExperience in a commercial IT or commercial Sales Operations organization preferred.%3C/LI%3E%3C/UL%3E%0A%3CP style=%22MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px%22%3E%26nbsp;%3C/P%3E'

These are two examples, there are a lot of them, Kindly any Monks please provide me a universal solution for this.

Thanks in advance.