What do you want to save?
Add Code snippet
New code examples
-
Ruby 2022-03-06 14:30:11
split ruby
# no number splits on single whitespace myArray = "hello hello".split # / / is one white space # limit value is 2 myArray = "hello hello".split(/ /, 2) # -1 means no limit to the number of fields returned, myArray = "hello ... Add solution -
Javascript 2022-01-30 12:46:23
regex
Let regex; /* shorthand character classes */ regex = /d/; // matches any digit, short for [0-9] regex = /D/; // matches non-digits, short for [^0-9] regex = /S/; // matches non-white space character regex = /s/; // matches any white space character regex ... Add solution -
Html 2022-01-29 09:21:23
html image and text side by side
<!-- In Your Css Code --> <style> img { width: 50%; /*image width*/ float: left; /*image position*/ } p { width: 50%; float: right; } /*If you face any problem make sure the <body> element has no padding. If y... Add solution -
-
Javascript 2022-01-22 04:46:10
regex /
Let regex; /* shorthand character classes */ regex = /d/; // matches any digit, short for [0-9] regex = /D/; // matches non-digits, short for [^0-9] regex = /S/; // matches non-white space character regex = /s/; // matches any white space character regex ... Add solution -
Javascript 2021-11-19 11:34:26
regular expression characters
/* shorthand character classes */ regex = /d/; // matches any digit, short for [0-9] regex = /D/; // matches non-digits, short for [^0-9] regex = /S/; // matches non-white space character regex = /s/; // matches any white space character regex = /w/; // m... Add solution -
VBA 2021-11-14 07:28:07
excel vba word count in string
'Fast VBA function to count the words in a string. Words are delimited by 'white space. White space is ASCII 0 thru 32. Function WordCount&(s$) Dim i&, b() As Byte If 0 = LenB(s) Then Exit Function b = s If b(0) > 32 Then WordC... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5