I've tried to combine two Regex with AND
but failed at the attempt.
- Pick up anything between '[[' and (']]' or '|') in direct succession :
(?<=(\[\[))(.*?)(?=(\||(\]\])))
- Doesn't contain 'http' :
^(?:(?!http).)*$
My best try was
(?=(?<=(\[\[))(.*?)(?=(\||(\]\]))))(?=^(?:(?!http).)*$).*$
Following https://stackoverflow.com/a/870506 but it is not working.
My goal is to get all the intenal links in a dokuwiki page typically : 'my_page', 'my_other_page', but not 'http://your_page' in :
[[my_page]]
[[my_other_page|this is my other page]]
[[http://your_page|this is your page]]