9
submitted 1 week ago by [email protected] to c/[email protected]

(?<!\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
[-] [email protected] 1 points 6 days ago

Not specifying the regex engine you use

Sorry, I have no clue.

Second, also describe what you mean by numbers that you want to match.

So you see in the screenshot, there's a random number at the end of some of the lines, I'm trying to match that.

[-] [email protected] 2 points 4 days ago

BTW if you don't need to capture the number, \d$ should match what you need. If regex syntax supports \d, of course.

[-] [email protected] 1 points 3 days ago

The number is the bit I want to capture.

[-] [email protected] 2 points 4 days ago

Sorry, I have no clue.

What do you use to apply your regex? Programming language, library, command line tool etc.

there’s a random number at the end of some of the lines, I’m trying to match that.

Is it decimal? One digit or multiple digits? Natural, rational?

[-] [email protected] 1 points 3 days ago

Sorry it took so long to get back to you, I was trying to find a type of some sort.

The app offers this https://github.com/gedoor/legado/blob/master/app/src/main/assets/web/help/md/regexHelp.md Which I hope you find fruitful as an indication.

What do you use to apply your regex?

An ePub Reader called Legado

Is it decimal? One digit or multiple digits? Natural, rational?

In the screenshot above, you can see it differs. I feel like I'm not doing your kindness justice with my sparse information, sorry! 🥺

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

RegEx

408 readers
1 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 2 years ago
MODERATORS