CodeIgniter Forums
How to use regex in filters - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: How to use regex in filters (/showthread.php?tid=80060)



How to use regex in filters - rafinhaa - 09-08-2021

I need to accept the filter without all uri except in auth.

PHP Code:
public $filters = [
 
'jwtauth' => [
 
'before' => ['api/v1/*'], //all but auth
 
],
 ]; 


I tried some combinations and I couldn't


RE: How to use regex in filters - kleber - 09-08-2021

Hello.
Explain more. Give some context.


RE: How to use regex in filters - InsiteFX - 09-09-2021

This may help you out.

stack overflow - A regular expression to exclude a word/string


RE: How to use regex in filters - rafinhaa - 09-09-2021

thanks, i will try some things