问题不是很难吧,没有正确答案??
谢谢,但是这个不对,不能输入空格的。
((\s)*(.)*(\s)*){5,}?
感谢你的回答,不过正则中好像不存在“/”这个符号吧。
我这个是perl的正则写法#!/usr/bin/perl -wprint "please enter 5 characer:\n";chomp(my $stdin = );print "your enter is $stdin\n"if ($stdin =~ /.{5}/s);如果你的输入只有数字,字母和空格的话, [\w\s]{5}