Find Jobs
Hire Freelancers

JavScript Regex Replace Script

$10-30 USD

In Progress
Posted about 10 years ago

$10-30 USD

Paid on delivery
I want a JavaScript function which does a search/replace on a block of text. This is a tricky "Generated Regex" task so you must be a Regex Guru!! I have a dictionary of terms and want to generate a Regex to locate simplified versions of each in plain text or HTMl, replacing them with the complete version. For example, we have a dictionary term "Aḥmad" (with dotted 'ḥ'). The regex would replace all iterations of "Ahmad" with "Aḥmad". That would require generating a regex for "Aḥmad" something like: [login to view URL](/A[h|ḥ]mad/g, "Aḥmad") For a full description, see the GitHub repository I created for this script: [login to view URL]
Project ID: 5833550

About the project

4 proposals
Remote project
Active 10 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
4 freelancers are bidding on average $34 USD for this job
User Avatar
Hi, My name is Elias Hamaz and I can write a script in Perl to replace words. I would like to add this suggestion to the ways of doing this: 1: Create regular expressions by script for each dictionary term. This will require defined groups of characters known to be found in the same place in words. 2: Load the text into RAM. 3: Search the text for each dictionary term's regular expression and replace with the complete version of the word. Surround in mark tag in HTML. This will search through the text multiple times. Once for each dictionary term. Please contact me to discuss further details. Elias
$30 USD in 1 day
5.0 (1 review)
2.7
2.7
User Avatar
Hi, I already made script like this, so I know it well. I can start working right now, so just contact me and I will write you more.
$35 USD in 1 day
5.0 (2 reviews)
1.4
1.4
User Avatar
Hi, I am an experienced developer , completed many projects . I am interested in this project because ,I can do this task easily. I am looking forwards to hear from you. If you want me to do this task, please let me know . So that we can discuss in detail. Thanks Khizar
$50 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I have 3 years of regex experience in antispam field. I also know Perl, some javascript and I could easily made that function for you if you give me a positive feedback.
$20 USD in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Granite Bay, United States
4.9
27
Payment method verified
Member since Oct 30, 2010

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.