The main idea: get all links from all posts. I trying to select data from WP multisites database by the next command:
"select regexp_substr(post_content, '(?<=href=[\'\"])([^\'\"]+)') as link_url from wp_${id}_posts where post_type = 'post' or post_type = 'page'"
But regexp_substr return only first occurrence. I meam return only first occurrence from each post, from table post_content. What I lost? Thanks.