within the plugin content_dump, I have a mysql query with a regular expression to find pages belonging to a content branch (e.g. page id 50).
Code: Select all
SELECT
XYZ
FROM
cms_content
WHERE
XYZ
AND
id_hierarchy REGEXP '50'
Of course, as long as I do not have as many pages or the other parameters prevent the plug-in from coming across any other page IDs containing '50', the problem will never arise. It's obvious now that I know it, but it never surfaced previously.
RegExp is not my best subject. I tried some things, but I just can not foprmulate what I have to do.
It needs to be like: if it contains '50' and '50' has a preceding '.' or nothing and is followed by a '.' or nothing. So it would match e.g. "50.60.70" or "60.50.70" or "60.70.50" but not "505.20.30" or "120.150.60".
I tried:
Code: Select all
[\.]*50[\.]*
Using:
Code: Select all
[\.]+50[\.]+
I'm blocked at the moment. Does anyone have a hint what I could do? Any help is much appreciated.
Best
nhaack