cpu-word Questions
2
Solved
learning python currently and having a bit of a problem. I'm trying to take a line from another subprogram and convert it into separate words that have been stripped of their punctuation besides a ...
Fizgig asked 26/10, 2012 at 16:27
6
Solved
I would like to split a text into single words using PHP. Do you have any idea how to achieve this?
My approach:
function tokenizer($text) {
$text = trim(strtolower($text));
$punctuation = '/[^...
3
Solved
I am working with windows form. In my project i need to color the last word of rich text box. When someone write on the given text box of the application i need the last word that is just written o...
Sugden asked 14/9, 2012 at 20:33
5
Solved
What is the actual difference in terms of source code when writing a 64 bit program? For example is only the assembly different? It's not like there's a 64 bit version of C++. If it's something as ...
Sedberry asked 15/8, 2012 at 7:33
3
Solved
I'm currently struggling to come up with a regex that can split up a string into words where words are defined as a sequence of characters surrounded by whitespace, or enclosed between double quote...
3
Solved
I have to choose from several types of genres for books and I was thinking using enums for this, but there are several genres composed by two or more words like "Medical, Health & Fitness", "Ar...
4
Solved
I want to test a string to see it contains certain words.
i.e:
$string = "The rain in spain is certain as the dry on the plain is over and it is not clear";
preg_match('`\brain\b`',$strin...
Jumbled asked 13/3, 2012 at 18:1
2
As I understand, w recognizes word boundaries by splitting text into 3 groups:
1) characters that are specified in the iskeyword setting (alphabetic, digits, and underscore)
2) other non-printabl...
2
Solved
I'm a big fan of discovering sentences that can be rapped very quickly. For example, "gotta read a little bit of Wikipedia" or "don't wanna wind up in the gutter with a bottle of malt." (George Wat...
Whalen asked 27/2, 2012 at 3:38
2
Solved
Recently I've learned that every computation cycle performs on machine words which on most contemporary processors and OS'es are either 32-bit or 64-bit. So what are the benefits of using the small...
Doctor asked 22/1, 2012 at 19:26
7
Solved
I would like to match the whole "word"—one that starts with a number character and that may include special characters but does not end with a '%'.
Match these:
112 (whole numbers)
10-12 (...
1
Solved
Is this code OK? I don't really have a clue which normalization-form I should us (the only thing I noticed is with NFD I get a wrong output).
#!/usr/local/bin/perl
use warnings;
use 5.014;
use utf...
Kaliope asked 13/7, 2011 at 13:1
3
Solved
I used this hideous and inefficient implementation to find the word that can have the most consecutive last letters removed and still be a word.
Rodeo, for example, is a well-known one: Rodeo, Rod...
Drip asked 21/5, 2011 at 22:18
1
I am trying to see if a word is in the dictionary or not. Is there any way to do that?
Borglum asked 7/5, 2011 at 2:58
2
Solved
Regexp Backslash - GNU Emacs Manual says that \< matches at the beginning of a word, \> matches at the end of a word, and \b matches a word boundary. \b is just as in other non-Emacs regular ...
1
Solved
I'm trying to access an unmanaged library and am lucky to have access to a comprehensive guide to the API.
Unfortunately, I've no idea what the C# equivalent of C++'s WORD type is. Similarly, I've...
2
Solved
Could you help me to create a pattern, which matches whole words, containing a specific part? For example, if I have a text string Perform a regular expression match and if I search for express, it...
Reactionary asked 18/1, 2011 at 8:41
6
Solved
I have a program that "greps" out various directory paths from a log text file and prints various results according to the word.
Examples of Directory paths:
C:/Documents and Settings/All Users...
4
Solved
I am curious as to how I would go about reading the input from a text file with no set structure (Such as notes or a small report) word by word.
The text for example might be structured like this:
...
5
Solved
i have came across the sentence "in a nutshell" while reading a technical book . i want to know the meaning of this sentence(in a nutshell).
Attainable asked 7/7, 2010 at 13:28
2
What is the difference between a word short and ushort in C#? They are both 16 bits!
1
Solved
In Delphi, the declaration of the DivMod function is
procedure DivMod(Dividend: Cardinal; Divisor: Word;
var Result, Remainder: Word);
Thus, the divisor, result, and remainder cannot be grater ...
3
Solved
Writing a globalization module for a web application and I need a regexp to replace all instances of a word with another word (the translation) - except - words found within a URL/URI.
EDIT: I for...
5
Solved
I know there is an algorithm for seeing how "close" two words are together. The idea is that this algorithm adds 1 point to the score for every single letter addition or subtraction that is necessa...
4
What is the algorithm - seemingly in use on domain parking pages - that takes a spaceless bunch of words (eg "thecarrotofcuriosity") and more-or-less correctly breaks it down into the constituent w...
Darin asked 4/8, 2009 at 23:10
© 2022 - 2024 — McMap. All rights reserved.