[JavaScript] Fix my regex

Closed Posted 7 years ago Paid on delivery
Closed Paid on delivery

I need someone who is experienced with regular expressions, also known as regex.

Suppose I got a file upload parser, which is coded in PHP/JS. I want it to check if the filename contains alphanumeric characters (letters A-Z, numbers 0-9, or hyphens '-').

Here's the catch: Suppose the given file name is equal to this name:

"My best HoLiDaY IN [login to view URL]".

I want the regex to check for every possibility, whether it's case insensitive or not.

Here is the function I want you to fix:

[login to view URL] = function(){

return [login to view URL]( /(^|\s)([a-zA-Z\.])/g , function(m,p1,p2){ return p1+[login to view URL](); } );

};

C++ Programming Java JavaScript PHP Regular Expressions

Project ID: #13743206

About the project

28 proposals Remote project Active 7 years ago

28 freelancers are bidding on average £21 for this job

chapter247

Dear Hiring Manager, Hi, How are you..? we have gone through with the requirements and I am ready to work on this project and with you. We have designed and built websites for various types of businesses very suc More

£23 GBP in 1 day
(22 Reviews)
6.4
webproind

Bid Summary Hi i read your requirement and our programmer can fix it .Thanks Project Requirements Check whether the filename contains only alphanumeric and hypen letters using regex Relevant Skills and Experience Hav More

£11 GBP in 1 day
(65 Reviews)
5.5
itXpertSoft

i can do it right now. Can you please explain what exactly you want the regex expression to do? Thanks

£18 GBP in 1 day
(19 Reviews)
4.6
mderevyanchuk

A proposal has not yet been provided

£17 GBP in 1 day
(29 Reviews)
4.9
Weborchid

We have a very experienced team of developer who can deliver the best result of your requirements for web application with javascript. Let's discuss in detail.

£13 GBP in 2 days
(12 Reviews)
4.6
taiaburbdon

I am expert with php,codeigniter, laravel framework, slim framework, wordpress, mysql, AJAX, JSON, javascript, jQuery, bootstrap, css3 and html5. I am develop large scale web application. Linux server administration More

£23 GBP in 1 day
(21 Reviews)
4.3
hiteshkumar2

Hello I understand your requirements. I am able to do this work according to your needs. I have 2 year hand on experience in web development and one year as front end developer. I have sound knowledge of Wordpress More

£18 GBP in 1 day
(19 Reviews)
5.2
BhavinJethava

Hi, I have more then 5 years of experience in JAVA,Web technologies like Spring , Hibernate and Desktop application like JAVAFX. Kindly share your requirements in details I will serve you best with my best efforts. More

£19 GBP in 1 day
(12 Reviews)
3.9
freelancer0340

I am a PHP Web Developer in a Payment Gateway Company. I have a lot of experiences in Web Development based on PHP, JavaScript as well as JQuery. I can solve the issue in the fastest period.

£18 GBP in 1 day
(5 Reviews)
3.3
ask1107

Hi, I have experience in regex. I can help you with it. I have used regex in many applications. We can discuss urther over chat

£18 GBP in 1 day
(1 Review)
0.0
numbercrunzer

A proposal has not yet been provided

£18 GBP in 2 days
(0 Reviews)
0.0
sharmaganesh413

A proposal has not yet been provided

£18 GBP in 1 day
(0 Reviews)
0.0
magesh07sekar

A proposal has not yet been provided

£19 GBP in 1 day
(0 Reviews)
0.0
aspatidar

A proposal has not yet been provided

£13 GBP in 1 day
(0 Reviews)
0.0