Is there any way to delete several lines from a string? I have a varchar value with a large amount of strings in it:
declare
v_txt varchar(4000);
v_txt2 varchar(4000);
begin
v_txt := '<Html>
<Head>
<meta charset="windows-1251" />
<style>
div {text-indent: 40px;}
</style>
<style>
p {text-indent: 40px;}
</style>
</Head>
<Body>
<font face="Arial">'
select regexp_replace(v_txt, some_pattern, '') into v_txt2 from dual;
dbms_output.put_line(v_txt2);
end;
I need lines situated between the first 'style' tag and the last '/style' tag to be deleted? How can i implement it? With what "some_pattern"?