Group Abstract Group Abstract

Message Boards Message Boards

0
|
10.6K Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Can someone help with string replacement rules for large replacements sets?

Posted 11 years ago

I have a list of text strings and a list of {word, alias) data that I would like to use to modify the original text strings. I would like to avoid having to type in the "->" characters.

POSTED BY: Coach KLC
4 Replies
Posted 11 years ago

You might use FullForm to inspect the contents of what you Import from Excel. I have seen in the past things coming from Excel are sometimes quoted strings. Mathematica almost always hides the quotes, thinking that it what you would want it to do. So they may already be strings, possibly even nested inside several layers of { }. Perhaps FullForm can most easily tell you.

POSTED BY: Bill Simpson
Posted 11 years ago

I find it difficult to understand exactly what you mean by that. The best way is to actually post Mathematica code in code blocks, and to attach data or notebook files as needed. Information on how to do all of this can be found here: How to post

POSTED BY: David Keith
Posted 11 years ago

Bill Simpson gave me a great start on this problem;Bravo! There is one detail that I neglected in re the format of my 'alias' data and that is the data is in text format (imported from Excel) and not in quotes-delimited format. Is there a way to treat that too?

POSTED BY: Coach KLC
Posted 11 years ago
POSTED BY: Bill Simpson
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard