Find Jobs
Hire Freelancers

Quick regular expression problem

£10-20 GBP

Completed
Posted over 5 years ago

£10-20 GBP

Paid on delivery
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]
Project ID: 18508927

About the project

10 proposals
Remote project
Active 5 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
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
£13 GBP in 1 day
5.0 (23 reviews)
5.1
5.1
10 freelancers are bidding on average £15 GBP for this job
User Avatar
Hello, I can create such a regular expression for you. I am available now. I hope we can collaborate together. Thanks
£18 GBP in 1 day
5.0 (73 reviews)
6.1
6.1
User Avatar
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 script , and I feel like there is no way to really contact them or get going on the project.
£18 GBP in 1 day
5.0 (2 reviews)
2.9
2.9
User Avatar
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 I offer my experience in VFP9 and Delphi 7 that can give you security and easy interfaces with a large amount of hardware and databases. You can count on responsibility, quality and dedication to satisfy your requirements with the highest professional capacity. Your site can count on advanced programming techniques and friendly user interfaces that allow your customers and / or users to feel comfortable navigating in it.
£18 GBP in 10 days
0.0 (0 reviews)
0.0
0.0
User Avatar
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 interpreted programming language with a support for regular expressions, I believe i am the perfect candidate for the job. Chat me up if you would like to work with me.
£10 GBP in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello, I can do this in 5 mins. I've lots of programming experience and have written lots of regxes in lots of languages.
£18 GBP in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED KINGDOM
London, United Kingdom
5.0
6
Payment method verified
Member since Jul 5, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.