回答編集履歴

2

修正

2021/05/10 05:56

投稿

LouiS0616
LouiS0616

スコア35668

test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  ```Python
16
16
 
17
- dst = re.findall(r'(?<!.)\b(?!.+.html)[a-zA-Z]+', txt)
17
+ dst = re.findall(r'(?<!.)\b(?![a-zA-Z]+.html)[a-zA-Z]+', txt)
18
18
 
19
19
  ```
20
20
 

1

追記

2021/05/10 05:56

投稿

LouiS0616
LouiS0616

スコア35668

test CHANGED
@@ -5,6 +5,16 @@
5
5
  ```Python
6
6
 
7
7
  dst = re.findall(r"(?<!.)\b[a-zA-Z]+\b(?!.html)", txt)
8
+
9
+ ```
10
+
11
+
12
+
13
+ あるいは
14
+
15
+ ```Python
16
+
17
+ dst = re.findall(r'(?<!.)\b(?!.+.html)[a-zA-Z]+', txt)
8
18
 
9
19
  ```
10
20