Extract data from text using regex

I have a text given below:
CONTENT(LAPTOP)
Table of items
1.1 ASUS Vivobook Pro 15 OLED RS69,999
1.2 Lenovo ThinkBook 15 Core i5 RS51,990
1.3 HP 2023 Ryzen 3 Dual Core 3250U RS32,231
1.4 Lenovo V15 Ryzen 5 Hexa Core 5500U RS35,510
1.5 APPLE 2020 Macbook Air M1 RS79,990
1.6 DELL Inspiron Core i3 11th Gen RS36,897
1.7 Infinix INBook Y1 Plus(1005G1) RS26,999
1.8 Lenovo ThinkPad E14 Core RS74,799
www.google.com.
1.9 HP 2023 Athlon Dual Core 3050U RS31,233
1.10 MSI Core i9 13th Gen 13900H RS 1,24,799

Can anyone provide regex to obtain:
1.1 ASUS Vivobook Pro 15 OLED RS69,999
1.2 Lenovo ThinkBook 15 Core i5 RS51,990
1.3 HP 2023 Ryzen 3 Dual Core 3250U RS32,231
1.4 Lenovo V15 Ryzen 5 Hexa Core 5500U RS35,510
1.5 APPLE 2020 Macbook Air M1 RS79,990
1.6 DELL Inspiron Core i3 11th Gen RS36,897
1.7 Infinix INBook Y1 Plus(1005G1) RS26,999
1.8 Lenovo ThinkPad E14 Core RS74,799
1.9 HP 2023 Athlon Dual Core 3050U RS31,233
1.10 MSI Core i9 13th Gen 13900H RS 1,24,799

Hey @Mohammad.Fuad
^(?!(CONTENT(LAPTOP)|Table of items|.www.google.com)).$
image
Try with this regex pattern

can also go with .*[0-9]

1 Like

Hi @Mohammad.Fuad

you can try this also

2 Likes

Hello

Another option thats not fixed on those strings:
\d+\.\d+.*
image

Cheers

Steve

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.