Quick regular expression problem
£10-20 GBP
Pago na entrega
I need a regular expression to use with preg_match_all() in PHP. I need to extract the variables from the following text:
----START TEXT------
{contact.email_greeting},
{if $contact.custom_406 == 3}This is test text{else}This is more text.{where $[login to view URL] == 10}Nested{/if}{/if}
{$[login to view URL]}{[login to view URL]}
----END TEXT------
The variables are always in the format word1.word2. They are always within {...} brackets. Sometimes they start with a $ and sometimes they don't. I only want the [login to view URL] variable name, without the dollar. So in this case it should extract:
contact.email_greeting
contact.custom_406
[login to view URL]
[login to view URL]
[login to view URL]
ID do Projeto: #18508927
Sobre o projeto
Concedido a:
Hello, I'm working as PHP Developer over 11 years. I can complete Your task right now. Contact me, so we can start the work. UPDATE I'v already did the regex. Regards
10 freelancers estão ofertando em média £15 nesse trabalho
Hello, I can create such a regular expression for you. I am available now. I hope we can collaborate together. Thanks
Why has this not been done yet ? Why is it still up here, this is like a 20 minute task and like 50 people bid on this. Wish I had access to whoever posted this so I could help them out, but all they gave was a Mais
Greetings, I hope I can help you. I have experience in the development of HTML5 WEB applications (PHP, javascript, AJAX, Boostrap, jQuery, JSON and MySQL database managers, SQL). For desktop or standalone applications Mais
With a very strong background in pattern matching, being a member of the PHP development team and haven developed web frameworks and template engines (Check out the github project CandyPHP) and haven developed a inter Mais
Hello, I can do this in 5 mins. I've lots of programming experience and have written lots of regxes in lots of languages.