Find Jobs
Hire Freelancers

PHP text manipulation snippet (number changing)

$10-30 USD

已完成
已发布将近 9 年前

$10-30 USD

货到付款
PHP script to change some text strings. Input: a text file with letters, numbers, and punctuation, like the following: Input text: "shi4bu6shi4 bu6hao3? yi6ge5 ren2 yi6kuai4 qian2." yi6 san1 si4. bu6hao3yi4si5, wo3 bu6gan4 qu4. yi6bai3san1shi2, yi6wan2 jiu4 qu4. yi6yi4si4bai3wan4. bu6! yi6? Desired output: "shi4bu2shi4 bu4hao3? yi4ge5 ren2 yi2kuai4 qian2." yi1 san1 si4, bu4hao3yi4si5, wo3 bu2gan4 qu4, yi4bai3san1shi2, yi4wan2 jiu4 qu4, yi2yi4si4bai3wan4, bu4! yi1? 1. Read each word (always separated by spaces or punctuation marks) 2. Identify if the word contains the substring "bu6" 3. If it does, check if there is a number later in the string (numbers BEFORE do not matter; only the NEXT number matters. So for "bu4hao3", the number to find is "3"; in "bu4hao3yi4si5" only the "3" matters, not the later numbers). 4. If there is, check if the next number is 4. 5. If it is, change the original substring "bu6" to "bu2". 6. Otherwise, change the original substring "bu6" to "bu2". If "bu6" stands alone (spaces or punctuation on both sides), change it to "bu4". 7. Check each word to find the substring "yi6". 8. If "yi6" is the entire word (spaces or punctuation on both sides), change "yi6" to "yi1". 9. If "yi6" is part of a larger word, see which number it is followed by (again, only the NEXT number matters). 10. If the next number is 4 (example: yi6ban4), change "yi6" to "yi2". 11. If the next number is 1,2,3, or 5, change "yi6" to "yi4". Ignore any number 7s in any position. They do not matter. Usually they would be deleted from the file before processing, but there is a chance they might not be.
项目 ID: 7943894

关于此项目

10提案
远程项目
活跃9 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
i will complete this work with in the 3-4 hours. I have strong knowledge on php and we will give you a good result as you want
$22 USD 在1天之内
4.6 (32条评论)
4.2
4.2
10威客以平均价$34 USD来参与此工作竞价
用户头像
Hello I am ready to do this task right now. As i am new here so i have placed bid with low rate that doesn't mean i will compromise with work. Please initiate to chat with me. Thanks Chirag
$20 USD 在1天之内
5.0 (251条评论)
6.1
6.1
用户头像
hi, I am interested to develop a php script to change input text according to your given algorithm. Please see my profile and consider me to do this project. Thanks Prakash
$50 USD 在1天之内
5.0 (68条评论)
5.9
5.9
用户头像
Hi, Lets start and get it done. You can rely on me. Please check my reviews and portfolio. Waiting for your positive reply. Thanks.
$24 USD 在1天之内
5.0 (59条评论)
5.7
5.7
用户头像
Hi, " I read your Work requirement Detail from Start to End .I understand that you want .I will be able to Work more quickly at $30 USD ". I have already Developed Many such logic . I Have More than 3 Years of Work Experience in PHP/Mysql development field. Invite me To discuss this
$30 USD 在1天之内
4.9 (54条评论)
5.5
5.5
用户头像
Hi,I am excited to take this project as it is little related one of my hobbies cryptography. My skills PHP,MYSQL,BOOTSTRAP,JQUERY,CSS,HTML Looking forward to your reply.
$30 USD 在2天之内
5.0 (6条评论)
2.9
2.9
用户头像
Hello my friend - can do it for you easily. I am a php developer with many experience - Did many things like that over the years. Would be great to work with you :)
$35 USD 在1天之内
4.8 (1条评论)
2.6
2.6
用户头像
A proposal has not yet been provided
$25 USD 在1天之内
4.9 (3条评论)
1.7
1.7
用户头像
A proposal has not yet been provided
$83 USD 在1天之内
0.0 (0条评论)
0.0
0.0

关于客户

UNITED STATES的国旗
Albany, United States
5.0
24
付款方式已验证
会员自5月 8, 2006起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。