Search
Other Advanced Module Manager questions
Forum

Regex question

Emil Appelkvist's Avatar Emil Appelkvist
Hello.
I´ve setup an regex that seems to be working in regex101.
However when expression doesn´t seems to work in Advanced module.

Regeular expression:
Confidential information:
(hidden)


Trying with regex:
Confidential information:
(hidden)


Trying without regex:
Confidential information:
(hidden)


Please advice.
Peter van Westen's Avatar Peter van Westen ADMIN
Remove the surrounding '/' characters.
Please post a rating at the Joomla! Extensions Directory
Emil Appelkvist's Avatar Emil Appelkvist
I can´t get the regex to be respected.

Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Can you just place the regex here in the chat, instead of making a screencast?

By the looks of it, you are using negative lookbehinds. Not all regex things work in all languages. And each language has its own flavour. The Regular Expressions Advanced Module Manager uses, are done via PHP.
Please post a rating at the Joomla! Extensions Directory
Emil Appelkvist's Avatar Emil Appelkvist
Aha. I see.
This is the Regex:

Confidential information:
(hidden)


Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Try:
option=com_jam&view=task&layout=task&id=(?!.*notusedatall|.*checklist)
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
Ah, but wait...

The hash is not part of the URL that PHP can see. The hash is only used on the browser side.
So you cannot check for hashes in the URLs via the conditions.
Please post a rating at the Joomla! Extensions Directory
Emil Appelkvist's Avatar Emil Appelkvist
I see. Thanks for your support!
Emil Appelkvist's Avatar Emil Appelkvist
There is nothing we can do right?
Peter van Westen's Avatar Peter van Westen ADMIN
Not with Advanced Module Manager.

An URL hash can be added/changed without the page reloading.
And also after the page has loaded. So the server does not see the hash at all.

The only way to show/hide stuff via hash, would be to write your own custom javascript code.
Please post a rating at the Joomla! Extensions Directory
Emil Appelkvist's Avatar Emil Appelkvist
Thanks for your time and input.
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription