D
D
Dwellss2019-09-21 20:11:07
Regular Expressions
Dwellss, 2019-09-21 20:11:07

How to selectively remove numbers using regexp?

With the help of notepad, I remove the Latin alphabet and leave the Cyrillic alphabet from the data set. The data is separated by commas. But there's a problem

[Az|1-9]++

This regexp removes latin, but also numbers.
And I need that in the data
42 year old, blonde, car, good green tree on field, correct solution12, no more than 3 data, look what you've done 4 times, pose 74, figure 12

only numbers that belong to the Latin alphabet were removed. Those. turn this line into
correct solution12, no more than 3 data, Figure 12

Can you please tell me how to remove Latin and Latin + numbers in data that are separated by commas? Those. between commas, actually :)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
dodo512, 2019-09-24
@Dwellss

https://regex101.com/r/Ugbkvw/2
If it is important to remove the commas around the edges.
https://regex101.com/r/Ugbkvw/4
(?:(^|,)(?i:[а-яё]()|[^,])*+(?!\2))+,?

E
Edward, 2019-09-21
@IS-Builder

Dwellss
See example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question