Need regex help with shortcode function

Shortcode is the term used by some content management systems to execute a program such as display a gallery on the frontend by converting some simple text entered in an editor in the backend. In the editor the admin types something like the following in the editor/textarea (saved in mysql):


Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus mollis convallis justo, vitae pretium libero condimentum et.

{[login to view URL] 1 2}

Morbi nibh nibh, blandit sit amet sodales ullamcorper, ultricies vel nulla.

{[login to view URL] 3 12}

etc etc etc


In the first shortcode above [login to view URL] becomes $arg1, #1 is $arg2 and #2 is $arg3

With some help through stackoverflow I have it display the galleries but regular text is out of order and some there are some other problems.

The task in hand is to finish off the regex expression so that it works correctly, in the right sequence and with any number of shortcodes. Here is a link to the stackoverflow post including a link to the demo.

[login to view URL]

Beceriler: MySQL, PHP

Daha fazlasını gör: do_shortcode, shortcode regex, wordpress shortcode with parameters, how to use shortcode in wordpress, get shortcode from content wordpress, do_shortcode_tag, wordpress shortcode example, how to create custom shortcode in wordpress, need someone help design iphone, need seo help business, need magento help, need someone help writing essay, need serious help need money, need wordpress help, need programme help facebook poker game, need flash help, companies need logo help, hadoop can used cms systems, need someone help css, companies need translating help

İşveren Hakkında:
( 2 değerlendirme ) Erie, United States

Proje NO: #17048143



Hello, i do have experience in short codes , i have done that in wordpress projects. i like to do the same for you too, let me know if you are interested. bdw i am ready to start work today itself. thanks

%selectedBids___i_period_sub_7% gün içinde 20%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(61 Değerlendirme)

Bu iş için 5 freelancer ortalamada $24 teklif veriyor


Hello, I went through your requirement of fixing the regex such that it works correctly for any no. of shortcodes. I'm available to start the work immediately and finish it within the next few hours. However, I'll b Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(7 Değerlendirme)

Dear Hiring Manager I read your job posting carefully and I have interest in your job. I am professional web developer and I have fully experience in regular expression and mysql. I am confident that you will l Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(2 Değerlendirme)

Hi, i guess you need to replace teh shortcode by the execiution output of another script taht is pased as argument ? like here? [login to view URL] and out soething like AAA {[login to view URL] asas ddd}BB Daha Fazla

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(18 Değerlendirme)
1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)