Regular expressions required for ColdFusion -- 2

Closed Posted 3 years ago Paid on delivery
Closed Paid on delivery

I need help with some regular expressions.

Example text variable:

<h4>some heading 1</h4>

<p>some body copy</p>

<p>more copy</p>

<h4>another heading 2</h4>

<p>some body copy</p>

<h4>some heading 3</h4>

<h4>some heading 4</h4>

<p>some body copy</p>

<p>more copy</p>

<p>even more copy</p>

I wish my client to be able to add h4 heading and copy in a WYSIWYG editor for simplicity and when it outputs the content in the template I wish to run the text through regular expressions to wrap the H and P tags with further markup to create a bootstrap accordion. The resulting code would take the content above and apply the additional markup as below. It would need to be written in CFML. so it would just wrap the additional DIVS around the H and P tags.

<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">

<div class="panel panel-default">

<div class="panel-heading" role="tab" id="headingOne">

<h4 class="panel-title">

<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">

some heading 1

</a>

</h4>

</div>

<div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">

<div class="panel-body">

<p>some body copy</p>

<p>more copy</p>

</div>

</div>

</div>

<div class="panel panel-default">

<div class="panel-heading" role="tab" id="headingTwo">

<h4 class="panel-title">

<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">

another heading 2

</a>

</h4>

</div>

<div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">

<div class="panel-body">

<p>some body copy</p>

</div>

</div>

</div>

<div class="panel panel-default">

<div class="panel-heading" role="tab" id="headingThree">

<h4 class="panel-title">

<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">

some heading 3

</a>

</h4>

</div>

</div>

<div class="panel panel-default">

<div class="panel-heading" role="tab" id="headingThree">

<h4 class="panel-title">

<a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">

some heading 4

</a>

</h4>

</div>

<div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">

<div class="panel-body">

<p>some body copy</p>

<p>more copy</p>

<p>even more copy</p>

</div>

</div>

</div>

</div>

Cold Fusion Regular Expressions PHP

Project ID: #26512542

About the project

15 proposals Remote project Active 3 years ago

15 freelancers are bidding on average £160 for this job

schoudhary1553

Hi, Greetings! ✅checked your project details: Regular expressions required for ColdFusion ✅Completed Time: In project deadline We have worked on 600 + Projects. I have 6 + years of the experience in same kind of More

£220 GBP in 5 days
(74 Reviews)
6.7
arigam

Hello, I have +16 Years of experience in ColdFusion. I have worked on more than 200 CF Websites and apps. I have worked on regular expression and Crawling of websites where this kind of requirement is full filled. I More

£120 GBP in 3 days
(33 Reviews)
6.9
DRG1990

Hello I have read your job description carefully. I am a web expert with 10 years of experience in PHP, MySQL, Javascript, HTML, CSS. Also, I have rich experience in processing string and algorithms using php. So I a More

£200 GBP in 3 days
(17 Reviews)
5.9
vovapod

Hello there. Nice to meet you. Could you send all details? I am experienced in PHP, JavaScript (full stack). I have a lot of experience in Javascript, jQuery, HTML5, CSS, Joomla, Prestashop, Opencart, Drupal, React.js More

£130 GBP in 7 days
(39 Reviews)
5.5
hassansystem

Expert in Web Designing and Development, I can Built or revamp your Website with all of Requirements. Ready to start Work with you! Inbox me and let's talk to get started!

£135 GBP in 7 days
(14 Reviews)
4.6
Lultu

so the idea is to pick up the content from db and search thru it using regx and add into the accordion. was thinking of any other easier solution.. may be by using javascript. hope to discuss more in chat.

£167 GBP in 5 days
(21 Reviews)
4.4
bobymanikpuri

Hi there, Greetings from Rohit! Trust me sir i can complete your requirement with your complete satisfaction Also i can start your work immediately Please come in inbox. Thanks

£50 GBP in 1 day
(8 Reviews)
2.1
maheshbabu123544

Hi I am an experienced Web Designer and Developer . I have over 2 years of experience in the Web Development and Design field. i am an experienced regular expression projects. I am able to demonstrate my creativity, m More

£110 GBP in 7 days
(2 Reviews)
0.6
rajamucharla5

Coldfusion 8 certified. Relevant Skills and Experience Coldfusion,javascript,html

£150 GBP in 3 days
(0 Reviews)
0.0
ramsaro36

I worked in a regular expression based project for CUP, wolterskluver. I can able to complete this on time. Please let me know the details. Thanks &Regards, Parthiban.R

£200 GBP in 3 days
(0 Reviews)
0.0