10

(?<!\d)\d+\.\d+ should match the numbers at the end of the lines and yet it won't. What am I doing wrong?

you are viewing a single comment's thread
view the rest of the comments
[-] sabreW4K3@lazysoci.al 3 points 1 year ago

Thank you. Every time someone shows me something regarding regex, I feel like I'm getting lessons from a deity.

You actually helped me out lots. I switched it to (?<!\d)\.*\d{1}+ thanks to your comment and it kinda did the job, so thank you.

[-] tetris11@lemmy.ml 3 points 1 year ago

oh nice solution, quite elegant

[-] sabreW4K3@lazysoci.al 2 points 1 year ago

It's a terrible solution, but it works somewhat. Thanks for being nice.

this post was submitted on 10 Jun 2025
10 points (100.0% liked)

RegEx

422 readers
5 users here now

Welcome to the RegEx community! This is a place where you can learn about and get help with regular expressions

A regular expression is a sequence of characters that specifies a match pattern in text. Theyre usually used for find, or find and replace operations on strings, or for input validation.


founded 3 years ago
MODERATORS