Regular expressions - how do I do it?
155595
Looks like you may be missing the repeat operator. The regex you listed above would accept any single alphanumeric character but reject anything which wasn't exactly one character long.\n\nSo it should be:\n\n [a-zA-Z0-9 ]*
364948
# extract all "words" from a string\n  while ($string =~ /(&#92;w+)(?# match a "word" )/g) {\n    print "Matched `$1'&#92;n";\n  }\n\n----------------------------------------------------------\n\nUsing /&#92;G.../gc in scalar context allows you to "inchworm" your way through a string, as you've just seen. But a more practical application of this is extracting quoted text from a string:\n\n  # modified from code by merlyn (Randal Schwartz)\n  # on the Perl Beginner's mailing list\n  \n  $_ = q{whatever "this" 'line is'};\n  \n  push @elements, $1 while\n    /&#92;G&#92;s*"([^"]*)"/gc or\n    /&#92;G&#92;s*'([^']*)'/gc or\n    /&#92;G&#92;s*(&#92;S+)"/gc;\n  print map "<<$_>> ", @elements;\n  # <<whatever>> <<this>> <<line is>>
853923
spell and grammar check
705798
Use data validation.  \nSelect the column, choose Data / Validation...., \nchoose "Allow" = "Text length",\n "Data" = "Less than or Equal To", and "Maximum" = 30\nIf you want fo find out how many characters you have in cell:\n=Len(Cell)    i.e., =Len(B1)
796595
This will strip any leading/trailing spaces from $content & then remove all spaces from the $content\n\n$content = preg_replace("/ +/", " ", trim($content));\n$content = str_replace(" ", "", $content);
318478
In programming you use <> to say 'not equal to'
522101
void RemoveWhiteSpaces(char *string) {\nchar * bch;\nchar newstr[80];\n// Get the first whitespace\nbch = strtok (string,' ');\n\nwhile (*bch != '&#92;0')\n{\n  if(string != ' ') {\n   strcat(newstr,bch);\n  }\n  *bch++;\n}\n\nreturn 0;\n}\n\n\nI guess, I am not gonna give you the hwole answer, maybe I did :) But here it is, hope you the best.. Some stuff need work
260514
The following "sed" command is a reasonable solution:\n\n  sed "s/^[     ]*//" < input > output\n\nPlease note that between the [] characters are a single\nspace character and a single TAB character.\n\nThis pattern means to "match the beginning of a line\n(that's what the "^" does), then match any number of\nspaces and tabs (the "*" says match any number), and\nreplace it with nothing (since the replacement pattern\nis empty).\n\nFor example:\n\n$ cat data\nthis is\n  a simple test\nusing\n       blanks and\ntabs.\n\n$ sed "s/^[     ]*//" < data\nthis is\na simple test\nusing\nblanks and\ntabs.
923765
Public Function FindDelimitedString(ByVal s As String, ByVal startDelimiter As String, ByVal EndDelimiter As String) As String\n        Dim beginPosition As Integer\n        Dim endPosition As Integer\n\n        If (s.Length > startDelimiter.Length + EndDelimiter.Length) Then\n            beginPosition = s.IndexOf(startDelimiter)\n\n            If (beginPosition >= 0) Then\n                beginPosition = beginPosition + startDelimiter.Length\n                endPosition = s.IndexOf(EndDelimiter, beginPosition)\n                If (endPosition >= 0) Then\n                    Return s.Substring(beginPosition, endPosition - beginPosition)\n                End If\n            End If\n        End If\n\n        Return String.Empty\n    End Function
1069483
Try using String.Format()\n\nFor example:\n\nString.Format("Hello {0}, you are {1}",\n      value1,\n      value2)
449829
The validation options are:\n\n1.None. \n2.Valid chars validation. \n3.Invalid chars validation. \n4.Letters validation. \n5.Numbers validation. \n6.MaskEdit. \n7.Regular expression validation (E-mail, IP, URL, ZIP, Fecha and Custom). \n8.Using the code\n\nTry the following link for more info.
613986
=IF(E12=0,0,\nIF(AND(E12>0,E12<4),\n5.9,IF(E12>=4,12.9,\n"negative value")))\n\nAll on one line!\n\nEdit:  The >= (greater than or equal to) is required else the value of exactly 4 would return "negative value"
465084
string alpha="AAAABBBBAAAA"\n\nstring one=alpha.substring(0,4)\nstring b=alpha.substring(4,4)\nstring three=alpha.substring(8,4)\n\ni hav used substring which is valid in java,c,c++,visual basic,c#.
225654
If you are using a unix bash then here is a quick guide:\n\n\nThe asterisk -- * -- matches any number of repeats of the character string or Regular Expresion (RE) preceding it, including zero.\n\n"1133*" matches 11 + one or more 3's + possibly other characters: 113, 1133, 111312, and so forth.\n\n\nThe dot -- . -- matches any one character, except a newline. [1]\n\n"13." matches 13 + at least one of any character (including a space): 1133, 11333, but not 13 (additional character missing).\n\n\nThe caret -- ^ -- matches the beginning of a line, but sometimes, depending on context, negates the meaning of a set of characters in an RE.\n#\n\nThe dollar sign -- $ -- at the end of an RE matches the end of a line.\n\n"^$" matches blank lines.\n\n\nBrackets -- [...] -- enclose a set of characters to match in a single RE.\n\n"[xyz]" matches the characters x, y, or z.\n\n"[c-n]" matches any of the characters in the range c to n.\n\n"[B-Pk-y]" matches any of the characters in the ranges B to P and k to y.\n\n"[a-z0-9]" matches any lowercase letter or any digit.\n\n"[^b-d]" matches all characters except those in the range b to d. This is an instance of ^ negating or inverting the meaning of the following RE (taking on a role similar to ! in a different context).\n\nCombined sequences of bracketed characters match common word patterns. "[Yy][Ee][Ss]" matches yes, Yes, YES, yEs, and so forth. "[0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9][0-9][0-9]" matches any Social Security number.\n\n\nThe backslash -- &#92; -- escapes a special character, which means that character gets interpreted literally.\n\nA "&#92;$" reverts back to its literal meaning of "$", rather than its RE meaning of end-of-line. Likewise a "&#92;&#92;" has the literal meaning of "&#92;".\n\n\nEscaped "angle brackets" -- &#92;<...&#92;> -- mark word boundaries.\n\nThe angle brackets must be escaped, since otherwise they have only their literal character meaning.\n\n"&#92;<the&#92;>" matches the word "the", but not the words "them", "there", "other", etc.\n\nHope this helps.
680926
http://validator.w3.org
978426
for example:\n\n-1 < 2\nthen\n1 > -2\n\nanother:\n x < -5\nthen\n-x > 5\n\n-2 x > 9\nx< -9/2\n\ns
253461
®\nuse ascii:\n\n\n<p>& # 1 7 4 ;</p>\nwithout the spaces