I have stored html links in a column of a postgis layer. There are a few entries which have multiple links stored in one cell (blank separated).
I have to use the firefox.exe
to open the links in multiple tabs. This doesn't work with Open
type,
I can open these links with:
"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" [% "link" %]
An entry of link looks like:
file:///H:/going/goingfurther_01_page.html
Now I want to use the same column to open the link in this way:
file:///H:/going/page.html
I tried:
"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" [% regexp_replace("link",'goingfurther_[0-9][0-9]_' ,'') %]
"C:\Program Files (x86)\Mozilla Firefox\firefox.exe" regexp_replace([% "link" %],'goingfurther_[0-9][0-9]_' ,'')
But QGIS can't open this. The first replace expression works with the field calculator.
Insert Expression
button in the Actions Form. So I assumed regex will be an option to create actions.