What is the regex for this?
Match if string
- NOT ( ends in
.php
OR ends in .html
OR contains /
)
Thank you!
Edit: I need the NOT
part because the expression is to be used on an Apache mod rewrite, since I can't change the logic of mod_rewrite
to avoid the NOT
.
Edit: My initial effort was ([^/]+)(.html)$(^.php)$
- which is monstrously wrong
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…