Find Jobs
Hire Freelancers

PHP text manipulation snippet (number changing)

$10-30 USD

Terminado
Publicado hace casi 9 años

$10-30 USD

Pagado a la entrega
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 del proyecto: 7943894

Información sobre el proyecto

10 propuestas
Proyecto remoto
Activo hace 9 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
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 en 1 día
4,6 (32 comentarios)
4,2
4,2
10 freelancers están ofertando un promedio de $34 USD por este trabajo
Avatar del usuario
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 en 1 día
5,0 (251 comentarios)
6,1
6,1
Avatar del usuario
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 en 1 día
5,0 (68 comentarios)
5,9
5,9
Avatar del usuario
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 en 1 día
5,0 (59 comentarios)
5,7
5,7
Avatar del usuario
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 en 1 día
4,9 (54 comentarios)
5,5
5,5
Avatar del usuario
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 en 2 días
5,0 (6 comentarios)
2,9
2,9
Avatar del usuario
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 en 1 día
4,8 (1 comentario)
2,6
2,6
Avatar del usuario
A proposal has not yet been provided
$25 USD en 1 día
4,9 (3 comentarios)
1,7
1,7
Avatar del usuario
A proposal has not yet been provided
$83 USD en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
Albany, United States
5,0
24
Forma de pago verificada
Miembro desde may 8, 2006

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.