From: ts Date: 2004-09-24T01:20:25+09:00 Subject: Re: whitespace string only >>>>> "A" == Ara T Howard writes: A> what do you mean be complex? seems very simple? For you, not for this "poor" regexp engine :-) svg% ruby -rjj -e '" ".match(/^\s*$/)' Regexp /^\s*$/ 0 begline 1 on_failure_jump ==> 4 2 charset \011-\012\014-\015 (0) 3 maybe_finalize_jump ==> 1 4 endline 5 end Fastmap supplied : \011-\012\014-\015 String << >> pos=0 0 begline | | 1 on_failure_jump | | >4[0] 2 charset | | 3 maybe_finalize_jump | | 1 on_failure_jump | | >4[1] 2 charset | | 3 jump | | 1 on_failure_jump | | >4[2] 2 charset | | 3 jump | | 1 on_failure_jump | | >4[3] 2 charset | | F4[3] 4 endline | | SUCCESS svg% it really prefer to do this svg% ruby -rjj -e '" ".match(/[^\S]/)' Regexp /[^\S]/ 0 charset_not \000-\010\016-\037!-\377 (0) 1 end Fastmap supplied : \011-\015 String << >> pos=0 0 charset_not | | SUCCESS svg% Guy Decoux