-
Notifications
You must be signed in to change notification settings - Fork 2
/
Parse.php
145 lines (145 loc) · 4.33 KB
/
Parse.php
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
<?php
/**
*
* @Name : SmartFiltering/Parse.php
* @Version : 1.0
* @Programmer : Max
* @Date : 2019-05-17
* @Released under : https://github.com/BaseMax/SmartFiltering/blob/master/LICENSE
* @Repository : https://github.com/BaseMax/SmartFiltering
*
**/
?>
<?php
if(isset($_POST['submit'])) {
$input=$_POST['input'];
}
else {
?>
<form action="" method="POST">
<div>
<h3>Input #0</h3>
<textarea name="input" cols="80" rows="20"></textarea>
<br>
</div>
<hr>
<div>
<h3>Filter #1</h3>
<input id="trim_none" type="radio" name="trim" value="none" checked="true">
<label for="trim_none">
Not Remove whitespace from whole of input
</label>
<br>
<input id="trim_both" type="radio" name="trim" value="both">
<label for="trim_both">
Remove whitespace from both sides of whole of input
</label>
<br>
<input id="trim_left" type="radio" name="trim" value="left">
<label for="trim_left">
Remove whitespace from left side of whole of input
</label>
<br>
<input id="trim_right" type="radio" name="trim" value="right">
<label for="trim_right">
Remove whitespace from right side of whole of input
</label>
<br>
</div>
<hr>
<div>
<h3>Filter #2</h3>
<input id="trim_line_none" type="radio" name="trim_line" value="none" checked="true">
<label for="trim_line_none">
Not Remove whitespace of per lines
</label>
<br>
<input id="trim_line" type="radio" name="trim_line" value="both">
<label for="trim_line">
Remove whitespace from both sides of per lines
</label>
<br>
<input id="trim_line_left" type="radio" name="trim_line" value="left">
<label for="trim_line_left">
Remove whitespace from left side of per lines
</label>
<br>
<input id="trim_line_right" type="radio" name="trim_line" value="right">
<label for="trim_line_right">
Remove whitespace from right side of per lines
</label>
<br>
</div>
<hr>
<div>
<h3>Filter #3</h3>
<input id="skip_line_none" type="radio" name="skip_line" value="none" checked="true">
<label for="skip_line_none">
Not Remove some character's from the line
</label>
<br>
<input id="skip_line_left" type="radio" name="skip_line" value="left">
<label for="skip_line_left">
Remove some character's from the left side of the line
<input type="number" value="30" name="skip_line_left_number">
</label>
<br>
<input id="skip_line_right" type="radio" name="skip_line" value="right">
<label for="skip_line_right">
Remove some character's from the right side of the line
<input type="number" value="30" name="skip_line_right_number">
</label>
<br>
</div>
<hr>
<div>
<h3>Filter #4</h3>
<input id="remove_line_none" type="radio" name="remove_line_number" value="none" checked="true">
<label for="remove_line_none">
Not Remove any number character's from the line
</label>
<br>
<input id="remove_line_number_decimal_whole" type="radio" name="remove_line_number" value="number_decimal_whole">
<label for="remove_line_number_decimal_whole">
Remove number(decimal) character's from the whole of the line
</label>
<br>
<input id="remove_line_number_float_whole" type="radio" name="remove_line_number" value="number_float_whole">
<label for="remove_line_number_float_whole">
Remove number(float) character's from the whole of the line
</label>
<br>
<input id="remove_line_number_decimalfloat_whole" type="radio" name="remove_line_number" value="number_decimalfloat_whole">
<label for="remove_line_number_decimalfloat_whole">
Remove number(decimal and float) character's from the whole of the line
</label>
<br>
</div>
<hr>
<div>
<h3>Filter #5</h3>
<input id="case_line_none" type="radio" name="case_line" value="none" checked="true">
<label for="case_line_none">
Not Change the case of the character's from the line
</label>
<br>
<input id="case_line_upper" type="radio" name="case_line" value="upper">
<label for="case_line_upper">
Make UpperCase the character's from the line
</label>
<br>
<input id="case_line_lower" type="radio" name="case_line" value="low">
<label for="case_line_lower">
Make LowerCase the character's from the line
</label>
<br>
<input id="case_line_upper_first" type="radio" name="case_line" value="upper_first">
<label for="case_line_upper_first">
Make UpperCase The First char of the words from the line
</label>
<br>
</div>
<hr>
<button>Check</button>
</form>
<?php } ?>