V
V
Vladimir Sokolov2016-01-04 23:27:32
PHP
Vladimir Sokolov, 2016-01-04 23:27:32

Split csv cells without separator?

Unfortunately, "products" and "sections" are merged. You need to separate them into separate cells and save them in a new file.
There is a separate list with goods and a list with sections in txt. The trouble is that there is no separator between products and sections, only a space, but both products and sections can be of several words.
I am attaching a screenshot.
bfa4d8922c0d40a089cb03f990706a8b.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav, 2016-01-04
@MrBikus

As I understand it, there should be much fewer sections than goods. If yes, then the easiest way is to write a regular expression, where the space before the section is replaced by a separator.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question