-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
62 lines (47 loc) · 1.92 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Alura - Expressões regulares</title>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/bootstrap-theme.css">
</head>
<body class="container">
<h1 class="text-left">Expressões regulares</h1>
<form class="form" >
<div class="form-group">
<label for="target">Target string (alvo)</label>
<input type="text" id="target" class="form-control" value="" autocomplete="off" required autofocus placeholder="Digite um target" />
</div>
<div class="form-group">
<label for="pattern">Pattern (expressão regular)</label>
<input type="text" id="pattern" class="form-control" value="" autocomplete="off" required placeholder="Digite um pattern"/>
</div>
<div class="form-group">
<button class="btn btn-primary" onclick="executa(event)">Executar Regex</button>
</div>
<div class="checkbox">
<label><input type="checkbox" id="mostraIndex" value="true" />Mostra índice </label>
<label></label>
<label><input type="checkbox" id="mostraGrupos" value="true" />Mostra grupos </label>
</div>
<div class="form-group">
<label for="resultado" id="labelResultados">Matches (resultados)</label>
<input type="text" id="resultado" class="form-control" value="" readonly />
</div>
<div class="form-group">
<label for="resultado" id="labelHighlight">Highlight</label>
<div id="highlightText" style="font-size:30px;"></div>
</div>
</form>
<br />
<br />
<br />
<br />
<div class="form-group">
<textarea class="form-control" rows="5" id="comment"></textarea>
</div>
<br />
<script src="js/regex.js"></script>
</body>
</html>