回答編集履歴
2
変更
test
CHANGED
@@ -22,4 +22,8 @@
|
|
22
22
|
|
23
23
|
select (regexp_matches(url,'[0-9]+','g'))[1] from hoge offset 1 limit 1;
|
24
24
|
|
25
|
+
|
26
|
+
|
27
|
+
select (regexp_matches((regexp_matches(url,'[0-9]+/[0-9]+'))[1],'[0-9]+$'))[1] from hoge;
|
28
|
+
|
25
29
|
```
|
1
追加
test
CHANGED
@@ -13,3 +13,13 @@
|
|
13
13
|
select replace((regexp_matches(url,'[0-9]+/$'))[1],'/','') from hoge;
|
14
14
|
|
15
15
|
```
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
数字が2個有る場合の2番目
|
20
|
+
|
21
|
+
```sql
|
22
|
+
|
23
|
+
select (regexp_matches(url,'[0-9]+','g'))[1] from hoge offset 1 limit 1;
|
24
|
+
|
25
|
+
```
|