-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
155 lines (144 loc) · 6.63 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Regex Tuesday - Challenges</title>
<link href="//fonts.googleapis.com/css?family=Source+Sans+Pro:200,400" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="assets/style.css">
</head>
<body>
<header>
<h1>Regex Tuesday - Challenges</h1>
<div id='social'>
<a href="https://twitter.com/share" class="twitter-share-button" data-via="callumacrae" data-hashtags="regextuesday">Tweet</a>
<div class="g-plusone" data-size="medium"></div>
<div class="fb-like" data-send="false" data-layout="button_count" data-width="75" data-show-faces="false" style="top: -4px"></div>
<div style='display: inline-block; position: relative; margin-left: 30px; top: 3px;'>
<script type="text/javascript" src="//pay.reddit.com/static/button/button1.js"></script>
</div>
</div>
</header>
<section>
<p>Regex Tuesday is the day where everyone writes regex for a day! Every tuesday, I will push a new challenge to this website. They can be easy or tricky, and there is sure to be a variety of different challenges available.</p>
<p>Thanks to GitHub for the hosting, and thanks to <a href="https://twitter.com/KoenKlaren">Koen Klaren</a> for the design!</p>
<h2>Challenges</h2>
<ul class="challenges">
<li><a href="challenge20.html" class="challenge">
<date>12/02/2013</date>
Challenge twenty - Chess move notation
</a></li>
<li><a href="challenge19.html" class="challenge">
<date>29/01/2013</date>
Challenge nineteen - HTML tag name golf
</a></li>
<li><a href="challenge18.html" class="challenge">
<date>22/01/2013</date>
Challenge eighteen - IRC messages
</a></li>
<li><a href="challenge17.html" class="challenge">
<date>08/01/2013</date>
Challenge seventeen - Matching Regular Expressions part 1
</a></li>
<li><a href="challenge16.html" class="challenge">
<date>18/12/2012</date>
Challenge sixteen - Chemical element golf 2
</a></li>
<li><a href="challenge15.html" class="challenge">
<date>11/12/2012</date>
Challenge fifteen - Musical chord names
</a></li>
<li><a href="challenge14.html" class="challenge">
<date>04/12/2012</date>
Challenge fourteen - Chemical element golf
</a></li>
<li><a href="challenge13.html" class="challenge">
<date>27/11/2012</date>
Challenge thirteen - Repeated words below
</a></li>
<li><a href="challenge12.html" class="challenge">
<date>20/11/2012</date>
Challenge twelve - Fix whitespace
</a></li>
<li><a href="challenge11.html" class="challenge">
<date>13/11/2012</date>
Challenge eleven - Let's play golf
</a></li>
<li><a href="challenge10.html" class="challenge">
<date>6/11/2012</date>
Challenge ten - Sentences to tokens
</a></li>
<li><a href="challenge9.html" class="challenge">
<date>30/10/2012</date>
Challenge nine - MarkDown Links
</a></li>
<li><a href="challenge8.html" class="challenge">
<date>23/10/2012</date>
Challenge eight - Repeated list items
</a></li>
<li><a href="challenge7.html" class="challenge">
<date>16/10/2012</date>
Challenge seven - Domain names
</a></li>
<li><a href="challenge6.html" class="challenge">
<date>09/10/2012</date>
Challenge six - IPv4 addresses
</a></li>
<li><a href="challenge5.html" class="challenge">
<date>02/10/2012</date>
Challenge five - Numbers
</a></li>
<li><a href="challenge4.html" class="challenge">
<date>25/09/2012</date>
Challenge four - Italic MarkDown
</a></li>
<li><a href="challenge3.html" class="challenge">
<date>18/09/2012</date>
Challenge three - Dates
</a></li>
<li><a href="challenge2.html" class="challenge">
<date>11/09/2012</date>
Challenge two - Grayscale colours
</a></li>
<li><a href="challenge1.html" class="challenge">
<date>04/09/2012</date>
Challenge one - Repeated words
</a></li>
</ul>
<p>There are currently two types of challenge; challenges where you have to do a find and replace on a given set of strings to produce a new string, and challenges where you have to match something. Every challenge will have a given set of "test cases". With the first type of challenge, the cases will be an input string and an expected output string, which will be compared with the actual output from your regular expression. The second type will be a string followed by "match" or "no match". The idea is to get your regex to pass as many test cases as possible - with some challenges, it'll be easy to get all test cases to pass, and with some, it'll be near impossible and you just have to get as many as you can to pass.</p>
<h2>Future Challenges</h2>
<p>I'll aim to post a challenge every tuesday, which I will post on Reddit / Twitter (<a href="http://twitter.com/callumacrae">@callumacrae</a>) / webdevRefinery. Watching <a href="https://github.com/callumacrae/regex-tuesday">the repo</a> on GitHub will also get you notifications.</p>
<p>If you have any ideas for challenges or would like to contribute a challenge, send me a message or a pull request. If you send a pull request, chances are I will merge it the tuesday afterwards.</p>
</section>
<footer>
Public domain. Site by <a href="http://macr.ae/">Callum Macrae</a>
</footer>
<script src="assets/main.js"></script>
<!-- Social media -->
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<script type="text/javascript">
window.___gcfg = {lang: 'en-GB'};
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1&appId=251120905643";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-10431066-8']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>