Finalizat

Make a function that produces a regex based on keywords.

We want to be able to dynamically build a RegExp that identifies urls. We will give in input a pattern containing keywords and jollies and a string containing many urls.

Build a function 'matchPattern(pattern, str)' that, given a primitive pattern and a string containing urls in input, constructs a regex as:

- Everything should be enclosed by quotes (either "" or '')

- pattern may contain {number} or {string} variables. Replace them with zero to unlimited 1-9 and A-z

Finally the function should return matched pattern(s) based on str parameter.

Examples

matchPattern("/job/{string}/{string}","\"[login to view URL]\"")

returns -> [login to view URL]"

matchPattern("/job/{number}/{string}","'[login to view URL]'")

returns -> False

matchPattern("/job/{string}","[login to view URL]")

returns -> False # No enclosing quotes

matchPattern("/{string}/{string}","'[login to view URL]'")

returns -> [login to view URL]

matchPattern("/{string}/{string}","[login to view URL]")

returns -> False # No enclosing quotes

matchPattern("/{string}/{string}","['/str/str','/abc/efg']")

returns -> Array(['/str/str','/abc/efg'])

matchPattern("/{string}?a","<a href='[login to view URL]' />")

returns -> [login to view URL]

Aptitudini: Python, Regular Expressions

Vezi mai multe: web articles based keywords, auto follow twitter users based keywords, wordpress generate pages based keywords, automatically build website based keywords, api twitter follow based keywords php, based keywords, code make function search site, description based keywords, interesting seo articles based keywords, make function export database file zip file cake php, make function rbf matlab, make visualization custom directshow based player, php make function create recordset, rss based keywords, writing article based keywords, sms auto reply based keywords, wordpress content scraper based keywords, redirect traffic based keywords, rss feeds based keywords script, auto reply based keywords

Despre angajator:
( 8 recenzii ) Piazza Armerina, Italy

ID Proiect: #28979572

Acordat lui:

abytesh

Hi, I just read the description and rules. I can write the expression right away. Ping me on chat. Thanks.

%selectedBids___i_sum_sub_4%%project_currencyDetails_sign_sub_5% USD în 1 zi
(10 Recenzii)
4.1

6 freelanceri licitează în medie 52$ pentru acest proiect

VeteranLK

Hi, inputs (string or array of strings), output -> string, None, or array of strings I have clearly identified the function. so "string","number" are the only data types? I can deliver in few hours, targeting python Mai multe

%bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD în 1 zi
(12 recenzii)
4.3
DestinyGuider

i am ready to start now Have read your description on project very carefully. I'm a professional developer with 1+ year experience as you can see my profile. Have completed many similar projects perfectly till now and Mai multe

%bids___i_sum_sub_35%%project_currencyDetails_sign_sub_36% USD în 2 zile
(2 recenzii)
2.2
Manpreetsweden

✔️✔️✔️High ✔️python Hello. how are you doing today? I am interested in your project and understood you are looking for a ✨Python Developer✨ to make a function that produces a regex based on keywords. I'm a full stack Mai multe

%bids___i_sum_sub_35%%project_currencyDetails_sign_sub_36% USD în 2 zile
(1 părere)
0.5
fakhruddinb

Hello, I read your project description and I am happy to introduce myself to you. I am a professional software engineer with more than 7 years of experience in building software/Website using .NET technologies and too Mai multe

%bids___i_sum_sub_35%%project_currencyDetails_sign_sub_36% USD în 2 zile
(0 recenzii)
0.0
devMahdi

hi, I am an experienced python developer. It is a very easy task for me. I have read your project's description. I can do it however you want it to be, no problem. So please feel free to response me, good luck.

%bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD în 1 zi
(0 recenzii)
0.0