java - How to test if a String contains both letter and number

前端 未结 7 1227
轻奢々
轻奢々 2020-12-16 01:07

I need a regex which will satisfy both conditions.

It should give me true only when a String contains both A-Z and 0-9.

Here\'s what I\'ve tried:

7条回答
提交回复
热议问题