|
@@ -10,7 +10,7 @@ filter_exprs() {
|
10
|
10
|
#
|
11
|
11
|
sed -e 's/(\d)\</\n/;'\
|
12
|
12
|
| perl -ne '
|
13
|
|
- next unless m/\b([a-zA-Z]{2,}\s*=\s*\d+)\b/;
|
|
13
|
+ next unless m/\b([a-zA-Z]\w*\s*=\s*\w+)\b/;
|
14
|
14
|
print "$1\n";
|
15
|
15
|
' \
|
16
|
16
|
| debug_pipe ex_lookalikes
|
|
@@ -23,7 +23,7 @@ filter_ids() {
|
23
|
23
|
#
|
24
|
24
|
tr ' ' '\n' \
|
25
|
25
|
| perl -ne '
|
26
|
|
- next unless m/\b([a-zA-Z]{2,}#\d+)\b/;
|
|
26
|
+ next unless m/\b([a-zA-Z]\w*#\w+)\b/;
|
27
|
27
|
print "$1\n";
|
28
|
28
|
' \
|
29
|
29
|
| debug_pipe id_lookalikes
|
|
@@ -34,8 +34,7 @@ filter_kws() {
|
34
|
34
|
#
|
35
|
35
|
# Hack out lines that look like kw expressions
|
36
|
36
|
#
|
37
|
|
- local kwbase="[a-z][a-z0-9]*"
|
38
|
|
- grep -e "^$kwbase " -e "^$kwbase\$" \
|
|
37
|
+ grep -Ee '^[a-zA-Z]\w*\s+[^=]' -e '^[a-zA-Z]\w*$' \
|
39
|
38
|
| debug_pipe kw_lookalikes
|
40
|
39
|
}
|
41
|
40
|
|