A
A
adrenalinruslan2018-03-30 12:39:55
Regular Expressions
adrenalinruslan, 2018-03-30 12:39:55

Searching for a slash in a string?

I have this check: How do I make it look for '/' as well. Toist here he is looking only for letters and numbers, but I need to also look for '/' preg_match('/^[A-z0-9]{3,15}$/', $page)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Tallmange, 2018-03-30
@p00h

preg_match('/^[A-z0-9\/]{3,15}$/', $page)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question