Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 9590

Questions on the manipulation of String objects in Mathematica, and the functions used for these manipulations.

5 votes
2 answers
227 views

Using StringCases and treating certain phrases as single words

My question is about StringCases. When I use this function, each word is separated by a ,. But I want some noun phrases like names of a ministry to be considered single words. For example, I would l …
Michiel van Mens's user avatar
1 vote
1 answer
105 views

Replacing whole strings

I imported a text and seperated al words by using StringCases. After this I would like to manipulate the text, for example to replace all singular verbs to plural. When I use StringReplace, then Mathe …
Michiel van Mens's user avatar
2 votes
2 answers
78 views

Retain or delete parts of textstring in tweets

For a twitter analysis I collected many tweets. For example: tweet = "Designing interventions for food security and prevention of \ malnutrition in Bangladesh #sensemaker http://t.co/wulTxX3vVK" In …
Michiel van Mens's user avatar
1 vote
1 answer
99 views

Using DeleteCases for twitter messages using the timestamp

I have a Excelsheet with tweetsmessages. These tweets are all written in Dutch. I would like to analyse these tweets in relation to the timestamp. tweets = Import["E:\\mathematica\\data\\tweets_gr20 …
Michiel van Mens's user avatar
4 votes
5 answers
350 views

DeleteCases based on string length

I have the following dataset data = {{"one", "two", "three", "a", "b", "c"}, {"four", "five", "d"}} I want to delete all the strings with length < 2. The desired output is: {{"one", "two", "three" …
Michiel van Mens's user avatar
0 votes
0 answers
129 views

Text-analysis: Import CSV without stringquotes

I have a large amount of text-files. I want to compare these text-files based on common 'words'. I export the output of my analysis as a CSV file. When I import the same file I get all seperate words …
Michiel van Mens's user avatar
2 votes
0 answers
53 views

How to select a part from a list of text imported from the internet

I import a dataset from the internet like: data=Import["http://www.test.com", {"HTML", "XMLObject"}] The dataset looks like this: {"02 jan", "40,250", "40,400", "40,150", "40,590", "152.289" .. …
Michiel van Mens's user avatar
1 vote
2 answers
293 views

text analysis: split document in separated lines

For a text analysis I want to split a large document in separated lines. Then I want to calculated for example the average number of words. A example of the document is the following: text = {" 1.1 …
Michiel van Mens's user avatar
7 votes
4 answers
829 views

Finding relevant parts in XML document

My question is about a XML document and finding parts of strings. test = Import["C:\\Users\\filename.xml", "XMLObject"] This gives the following output: XMLObject["Document"][{XMLObject["Declarati …
Michiel van Mens's user avatar