6 votes
Accepted

Replace number in string with ? and /;

You've mixed up the usage of PatternTest (?) and Condition (...
xzczd's user avatar
  • 65.9k
4 votes

Replace number in string with ? and /;

In this case maybe consider a RegularExpression ...
user1066's user avatar
  • 17.2k
2 votes

How can I transform the string to a list?

b1 = {a, b, c, d, e}; b2 = {1, 2, 3, 4, 5}; Some more possibilities: ...
eldo's user avatar
  • 64.6k
2 votes

Sublist creation, splitting and joining

...
eldo's user avatar
  • 64.6k
2 votes

How to remove quotation marks in Table list

list = {{"a,10,20"}, {"b,10,20"}, {"c,10,20"}}; Using ImportString ...
eldo's user avatar
  • 64.6k
2 votes
Accepted

Why is StringSplit dropping empty entries?

From the documentation: By default, StringSplit[s,patt] drops zero-length substrings associated with delimiters that appear at the beginning or end of s. and StringSplit[s,patt,All] returns all ...
lericr's user avatar
  • 26.8k
1 vote

Pattern matching with DeleteCases

String matching is different than general pattern matching. Let's look at the full form of the expressions: ...
lericr's user avatar
  • 26.8k
1 vote

Finding the index of certain strings in a list

p = Position[Last @* StringSplit /@ dates, "23:30:00"] {{4}, {52}} Extract[dates, p] {"2018-01-01 23:30:00"...
eldo's user avatar
  • 64.6k
1 vote

Sublist creation, splitting and joining

...
E. Chan-López's user avatar
1 vote

Sublist creation, splitting and joining

...
Syed's user avatar
  • 50.6k
1 vote

How can I transform the string to a list?

b1 = {a, b, c, d, e}; b2 = {1, 2, 3, 4, 5}; Using Thread and MapApply: ...
E. Chan-López's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible