4
4
4upik2018-04-27 19:22:05
Perl
4upik, 2018-04-27 19:22:05

How to strip a value from the end + the letter W to the first space with Perl regular expressions?

How to strip a value from the end + the letter W to the first space with Perl regular expressions?
Example
Electric meat grinder MOULINEX ME605131 600W, 1.6kg/min, reverse (pcs.)
Electric meat grinder MOULINEX ME610130 1700W, 2.2kg/min, reverse (pcs.)
Electric meat grinder MOULINEX ME625131 700-1800W, 2.2kg/min, reverse (pcs) Electric meat grinder
PANASONIC MK- G1800 330-1800W 1.6kg/min, auto-reverse (pcs.) Electric meat
grinder PANASONIC MK-MG1000 200-1000W 0.8kg/min (pcs.) MOULINEX ME610130 1700W, 2.2kg/min, reverse (pcs.) Electric meat grinder MOULINEX ME625131 700-1800W, 2.2kg/min, reverse (pcs.)



Electric meat grinder PANASONIC MK-G1800 330-1800W 1.6kg/min, auto reverse (pcs.)
Electric meat grinder PANASONIC MK-MG1000 200-1000W 0.8kg/min (pcs.)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nick Sdk, 2018-04-27
@4upik

https://regex101.com/r/fn8XR6/1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question