T
T
techland2019-06-09 12:35:42
Regular Expressions
techland, 2019-06-09 12:35:42

What is the correct way to write a LibreOffice regular expression?

The LibreOffice table contains the names of products with the quantity in the package.
Examples:
product number one 50 ml container, 60 pcs.
item number two packing 100 pcs.
item number three 10pcs.
It is necessary to leave only the number of pieces in the package in the cells, and delete everything else, that is:
60 pieces
100 pieces
10 pieces
I try different regular expressions, but nothing helps.
([^0-9]{1,3}) ([^т-ш])
[![0-9]{1,3}[:space:][:lower:]{2}]
Please help me write a regular expression.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VicTHOR, 2019-06-09
@techland

it's all right?
\d* ?pcs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question