Skip to content

zoglam/regex-solves-callumacrae

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

regex-solves-callumacrae

Решение задач http://callumacrae.github.io/regex-tuesday/ (https://github.com/callumacrae/regex-tuesday)

Challenge one - Repeated words

/(\b[^\s]+) (\1\b)/gi

replace to

$1 <strong>$2</strong>

Challenge two - Grayscale colours

replace to

Challenge three - Dates

replace to

Challenge four - Italic MarkDown

replace to

Challenge five - Numbers

replace to

Challenge six - IPv4 addresses

replace to

Challenge seven - Domain names

replace to

Challenge eight - Repeated list items

replace to

Challenge nine - MarkDown Links

replace to

Challenge ten - Sentences to tokens

replace to

Challenge eleven - Let's play golf

replace to

Challenge twelve - Fix whitespace

replace to

Challenge thirteen - Repeated words below

replace to

Challenge fourteen - Chemical element golf

replace to

Challenge fifteen - Musical chord names

replace to

Challenge sixteen - Chemical element golf 2

replace to

Challenge seventeen - Matching Regular Expressions part 1

replace to

Challenge eighteen - IRC messages

replace to

Challenge nineteen - HTML tag name golf

replace to

Challenge twenty - Chess move notation

replace to