Regular expressions required for ColdFusion -- 2
£20-250 GBP
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>
Project ID: #26512542
About the project
15 freelancers are bidding on average £160 for this job
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
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!
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.
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
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
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