-
Notifications
You must be signed in to change notification settings - Fork 1
/
usage_example.sql
41 lines (40 loc) · 965 Bytes
/
usage_example.sql
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
doc
USAGE example:
declare
c clob;
s varchar2(8000);
begin
--- HTTPS - CLOB:
c := xt_http.get_page(
pURL => 'https://google.com',
pTimeout => 3000/* 3 seconds */
);
--- HTTPS - varchar2:
s := xt_http.get_page_as_string(
pURL => 'https://google.com',
pTimeout => 3000/* 3 seconds */
);
end;
/
-- Return matched expressions:
select *
from table(
xt_http.get_matches(
pUrl => 'https://google.com',
pPattern => 're..rn',
pTimeout => 3000
)
);
/
-- Return matched SUBexpressions:
select *
from table(
xt_http.get_matches(
pUrl => 'https://google.com',
pPattern => 're(..)rn',
pTimeout => 3000,
pGroup => 1 -- subexpression regexp group
)
);
/
#