L
L
littleguga2016-01-21 19:26:24
Regular Expressions
littleguga, 2016-01-21 19:26:24

What is the difference between these regular expressions?

\.php(?:$|/)
\.php$
Are they essentially equivalent?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melkij, 2016-01-21
@melkij

testcase:
foo.php
foo.php/
foo.php/bar

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question