Hi I have some SQL code that I am trying to parse and extract some text.
CREATE OR REPLACE VIEW the_view_name as
I want the text between REPLACE VIEW and the AS which does not include leading or trailing spaces.
At the moment I'm getting the whole lot with /REPLACE\s*VIEW(.*?)\s*AS/gi.
Thanks