Level 61
[A-Za-z_()!@*.#\/\]+
Or you can escape all chars
[A-Za-z\_\(\)\!\@\*\.\#\/\]+
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
The name needs to consist of A-Z a-z and symbols _ ( ) ! @ * . # / \
How to do it?
Please or to participate in this conversation.