Find Jobs
Hire Freelancers

PHP Parse char strings into consistent result

$10-30 USD

Completed
Posted about 3 years ago

$10-30 USD

Paid on delivery
We have a scraper that captures a char string, then parses it in a specific format to execute further queries. The problem is that the source string is not in a consistent format. Previously it was always word(space)word(space)word. Now they are inconsistent. Sometimes it is as above, sometimes it is different format. For example word(space)word$nbsp;word. I need a way to parse the various strings into a consistent result. Here is the way we are currently doing it: str_replace(" ", "-", strtolower($entry['name'])) Obviously that won't work if they sometimes use   instead of " ", or if they sometimes have two spaces instead of one. The strings are short, for example "Clothing Optional PREMIUM OCEAN VIEW" If you can Teamviewer or Anydesk I can easily clarify if you don't understand.
Project ID: 29485375

About the project

12 proposals
Remote project
Active 3 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
Hi, I understand your problem and can fix your problem with space and   I have plenty experience with this kind of regex problem and PHP. I can start work right now and can fix within 1 hour. Best regards.
$20 USD in 1 day
4.9 (14 reviews)
4.4
4.4
12 freelancers are bidding on average $21 USD for this job
User Avatar
Hi. Hope are doing fine. I have high level expertise in PHP. I can easily take a look at this issue on anydesk that you are facing.... Will provide you top quality work for sure. I can start right now.
$20 USD in 1 day
5.0 (67 reviews)
5.7
5.7
User Avatar
*****PHP Expert****** I can easily done this job for string formulation and concatenation things. i have huge exp. on it & i'll finish this job with in 1 hour and try my best for the same. looking for Positive response. Thanks Gourav
$20 USD in 1 day
5.0 (36 reviews)
4.9
4.9
User Avatar
Hello. I understand your problem and make a function which can solve your problem. I think 1-2 hours are enough. Kindly give me a message.
$20 USD in 7 days
5.0 (8 reviews)
4.3
4.3
User Avatar
Solution to your problem look apparent (preg_replace) to me from just a mere look at your problem statement unless there's something I'm missing, get in touch that I may assist you remotely right away.
$17 USD in 1 day
5.0 (6 reviews)
2.4
2.4
User Avatar
Hello there. I hope your doing fine. I am a full stack web developer having vast experience in front-end and back-end technologies. I have done a lot of projects on php and made a lot of logic like these. I'll be happy to help you ,if you could explain more. Thank you and have a nice day.
$15 USD in 1 day
5.0 (1 review)
0.6
0.6
User Avatar
Hi, there. I have gone through your post and I can see that you want to change the specific text using PHP. I have been working as a full stack developer for over 7 years so have solid experience and strong knowledge of frontend and backend. I have good experience of many years with front-end development using Javascript/JQuery, React.js, Vue.js and Angular.js as the Frontend framework. For database language, I have majored MySQL(MariaDB)/MongoDB and DynamoDB. I am also very familiar with Python, PHP and backend frameworks like Wordpress, Laravel, Codeigniter and Zend and have built so many websites without fail using these frameworks and libraries. I will start work right now and complete your project ASAP. I want to discuss your project in more detail.
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi there. I saw your description and I am pretty sure that I can help you with that. I have rich experience in javascript, typescript, node.js, express, react.js, angular2+, and so on. React out to me so that we can discuss in detail via chat. Looking forward to hearing from you. Thanks.
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
function clean($str) { $str = utf8_decode($str); $str = str_replace(" ", "", $str); $str = preg_replace('/\s+/', ' ',$str); $str = trim($str); return $str; }
$10 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Fort Collins, United States
5.0
671
Payment method verified
Member since Jul 13, 2004

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.