0

我需要通过 java 代码在 DB 中创建一个表。我正在通过表单从用户那里获取名称。请你能告诉我阻止用户输入有效表名的正则表达式吗?

For Example in DB if we create a table with (" ")space it will not allow.
4

1 回答 1

0

试试这个 [a-zA-Z\d][\w#@]{0,127}$

128 个字符,无空格,不区分大小写

于 2013-10-08T15:19:26.247 回答