X
X
XenTerSeO2015-12-13 03:22:38
JavaScript
XenTerSeO, 2015-12-13 03:22:38

How to find all possible URLs using regular expressions?

Need to find all URL options except /logout
There is a regular expression -
( /?*[^logout]|/), but the following URL options are not processed for some reason:
/category/9/中文
/topic/2663/timestamps
/o
/users/yari

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2015-12-13
@XenTerSeO

Your regular expression is generally strange. [] is a list of characters, that is, it does not look for logout, but the letters l, o, g, u, t

A
Anatoly, 2015-12-13
@Beefeater

Watch this video: https://www.youtube.com/watch?v=DYewDyixMH8&index=...
regular expressions will be easy for you. The site where regular expression patterns are collected will also be shown there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question