Jump to content

Empty string: Difference between revisions

m
→‎{{header|Sidef}}: added three examples using the smart-match operator (~~)
m (→‎{{header|Sidef}}: added three examples using the smart-match operator (~~))
Line 1,075:
s.length == 0;
s.is_empty;
s ~~ /A\z/;
/\A\z/.match(s)??;</lang>
 
Line 1,081 ⟶ 1,082:
s.length?;
s.length > 0;
s ~~ /./s;
s !~ /^\z/;
/./s.match(s)??;</lang>
 
2,747

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.