K
K
Keliorw2021-07-29 19:40:24
PHP
Keliorw, 2021-07-29 19:40:24

How to make a regular expression to find a certain word but different numbers in a certain place?

Here I have a string allowable: gdafhdf[smile3643][smile3657][smile3668][smile3627][smile3626][smile3679][smile3649][smile3638][smile3637][smile3660][smile3673]

How can I find all "[smile( a set of numbers, not necessarily 4 can be both 3 and 10)]"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egor Danchenko, 2021-07-29
@Keliorw

/\[smile\d+\]/
6102dc2e7482a783734798.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question