Hello Monks,

I have a doubt on how to delete duplicate paragraphs from inside a string. I can delete the immediate predecessor from a line but I am failing in this case, as this is a paragraph which is duplicating. Can any Monks kindly guide me on this issue pls...

Thank you!

$string = ' 75160 true 75160 false Submission for the position: Chef De Partie - (Job Number: HLT00016) false 75160 false true https://frhi.taleo.net/careersection/jobdetail.ftl?job=75160&lang=en Chef De Partie true Chef De Partie Egypt-Cairo-Fairmont Towers, Heliopolis Egypt-Cairo-Fairmont Towers, Heliopolis Regular Regular !*! [IMAGE] Chef de Partie Every memorable dining experience at Fairmont Hotels and Resorts begins behind the scenes with our Culinary team’s commitment to saf +e, efficient operations and exceptional cuisine. Your passion for managing food preparation as Chef de Partie will inspire your team +to create truly spectacular fare. Hotel Overview:At the heart of Cairo +’s diplomatic and presidential neighborhood, a few minutes away from Cairo International Airport elegantly stands the Fairmont Heliopoli +s &Towers Hotel. It boasts 835 lavish guest rooms and suites, 19 superlative dining options, 69 thousand square feet of banquet spac +e and a unrivalled range of recreational & Spa facilities. The design + of Fairmont, Heliopolis & Towers Hotel comprises a unique mix of contemporary art and authentic décor that echoes modern Cairo along with the distinct Egyptian heritage. Summary of Responsibilities: Reporting to the Sous Chef, responsibilities and essential job functions include but are not limited to the following: * Consistently offer professional, friendly and proactive guest service while supporting fellow Colleagues * Ensure the consistency in the preparation of all food items for + a la carte andor buffet menus according to hotel recipes and standards * Actively share ideas, opinions and suggestions in daily shift briefings * Ensure all kitchen Colleagues are aware of standards and expectations * Liaise daily with Outlet Chefs to keep open lines of communicat +ion regarding guest feedback * Continually strive to improve food preparation and presentation +s * Maintain proper rotation of product in all chillers to minimize wastage/spoilage * Have full knowledge of all menu items, daily features and promotions * Ensure the cleanliness and maintenance of all work areas, utensils, and equipment * Follow kitchen policies, procedures and service standards * Follow all safety and sanitation policies when handling food an +d beverage * Other duties as assigned !*! [IMAGE] Chef de Partie Every memorable dining experience at Fairmont Hotels and Resorts begins behind the scenes with our Culinary team’s commitment to saf +e, efficient operations and exceptional cuisine. Your passion for managing food preparation as Chef de Partie will inspire your team +to create truly spectacular fare. Hotel Overview:At the heart of Cairo +’s diplomatic and presidential neighborhood, a few minutes away from Cairo International Airport elegantly stands the Fairmont Heliopoli +s &Towers Hotel. It boasts 835 lavish guest rooms and suites, 19 superlative dining options, 69 thousand square feet of banquet spac +e and a unrivalled range of recreational & Spa facilities. The design + of Fairmont, Heliopolis & Towers Hotel comprises a unique mix of contemporary art and authentic décor that echoes modern Cairo along with the distinct Egyptian heritage. Summary of Responsibilities: Reporting to the Sous Chef, responsibilities and essential job functions include but are not limited to the following: * Consistently offer professional, friendly and proactive guest service while supporting fellow Colleagues * Ensure the consistency in the preparation of all food items for + a la carte andor buffet menus according to hotel recipes and standards * Actively share ideas, opinions and suggestions in daily shift briefings * Ensure all kitchen Colleagues are aware of standards and expectations * Liaise daily with Outlet Chefs to keep open lines of communicat +ion regarding guest feedback * Continually strive to improve food preparation and presentation +s * Maintain proper rotation of product in all chillers to minimize wastage/spoilage * Have full knowledge of all menu items, daily features and promotions * Ensure the cleanliness and maintenance of all work areas, utensils, and equipment * Follow kitchen policies, procedures and service standards * Follow all safety and sanitation policies when handling food an +d beverage * Other duties as assigned !*!Qualifications: * Previous experience in the Culinary field required * Journeyman’s papers or international equivalent required * DiplomaCertification in a Culinary discipline an asset * Computer literate in Microsoft Window applications an asset * Strong interpersonal and problem solving abilities * Highly responsible & reliable * Ability to work well under pressure in a fast paced environment * Ability to work cohesively as part of a team * Ability to focus attention on guest needs, remaining calm and courteous at all times Physical Aspects of Position (include but are not limited to): * Constant standing and walking throughout shift * Frequent lifting and carrying up to 30 lbs * Occasional kneeling, pushing, pulling, lifting * Occasional ascending or descending ladders, stairs and ramps Visa Requirements: Must be eligible / permitted to work in Egypt APPLY TODAY: Whether you’re launching your career or seeking meaningful employment, we invite you to visit www.fairmontcareers.c +om to learn more about Fairmont Hotels & Resorts—and the extraordinary opportunities that exist! ABOUT FAIRMONT HOTELS & RESORTS At Fairmo +nt Hotels & Resorts we offer our guests the finest hospitality experie +nce in each of our destinations. And we know that, to offer our guests +the best, we first need to offer our employees the best. That’s why you +'ll find exceptional work opportunities—throughout North America and th +e Caribbean, Europe and Africa, the Middle East and Asia Pacific—as w +ell as industry-leading training, career development, recognition and rewards. Fairmont Hotels & Resorts is a celebrated collection of hotels that includes landmark locations like London’s The Savoy, Ne +w York’s The Plaza, and Shanghai’s Fairmont Peace Hotel. Our teams ar +e guided by values of Respect, Integrity, Teamwork and Empowerment; w +e employ the highest ethical and quality standards, treating all colleagues with fairness and dignity. A community and environmental leader, Fairmont is also regarded for its responsible tourism practices and award-winning Green Partnership program. An exciting future awaits! !*!Qualifications: * Previous experience in the Culinary field required * Journeyman’s papers or international equivalent required * DiplomaCertification in a Culinary discipline an asset * Computer literate in Microsoft Window applications an asset * Strong interpersonal and problem solving abilities * Highly responsible & reliable * Ability to work well under pressure in a fast paced environment * Ability to work cohesively as part of a team * Ability to focus attention on guest needs, remaining calm and courteous at all times Physical Aspects of Position (include but are not limited to): * Constant standing and walking throughout shift * Frequent lifting and carrying up to 30 lbs * Occasional kneeling, pushing, pulling, lifting * Occasional ascending or descending ladders, stairs and ramps Visa Requirements: Must be eligible / permitted to work in Egypt APPLY TODAY: Whether you’re launching your career or seeking meaningful employment, we invite you to visit www.fairmontcareers.c +om to learn more about Fairmont Hotels & Resorts—and the extraordinary opportunities that exist! ABOUT FAIRMONT HOTELS & RESORTS At Fairmo +nt Hotels & Resorts we offer our guests the finest hospitality experie +nce in each of our destinations. And we know that, to offer our guests +the best, we first need to offer our employees the best. That’s why you +'ll find exceptional work opportunities—throughout North America and th +e Caribbean, Europe and Africa, the Middle East and Asia Pacific—as w +ell as industry-leading training, career development, recognition and rewards. Fairmont Hotels & Resorts is a celebrated collection of hotels that includes landmark locations like London’s The Savoy, Ne +w York’s The Plaza, and Shanghai’s Fairmont Peace Hotel. Our teams ar +e guided by values of Respect, Integrity, Teamwork and Empowerment; w +e employ the highest ethical and quality standards, treating all colleagues with fairness and dignity. A community and environmental leader, Fairmont is also regarded for its responsible tourism practices and award-winning Green Partnership program. An exciting future awaits! Colleague Colleague Full-time Full-time Rotating / Shift Work Rotating / Shift Work Ongoing Ongoing HLT00016 HLT00016 false 75160 75160 true 75160 false Submission for the position: Chef De Partie - (Job Number: HLT00016) false 75160 false true https://frhi.taleo.net/careersection/jobdetail.ftl?job=75160&lang=en Chef De Partie true ';

In reply to To remove duplicates inside a string by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.