Skip to content
Advertisement

Contact Form 7 content explode by regular expressions

I have a contents of ‘Contact Form 7’ that I got from WP post. It looks something like this:

JavaScript

I need to explode this content to an array by regular expressions. At the end of the process it should look like this:

JavaScript

Does anyone have an idea how to do it by using regular expressions or any other way? Thanks 🙂

Advertisement

Answer

JavaScript

Try this.Grab the capture.See demo.

http://regex101.com/r/yP3iB0/8

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement