I need to pass username in my URL.
username can be any combination of letter, numbers and special characters like @,_.
also, username starts with a letter.
username examples: test@1, test_1,test2_1990,
You can use this regex for your purpose: "^[a-zA-Z][a-zA-Z0-9_@]*$"