sabreW4K3@lazysoci.al to RegEx@programming.dev · 1 month agoWhy won't this work?lazysoci.alimagemessage-square12linkfedilinkarrow-up19arrow-down10file-text
arrow-up19arrow-down1imageWhy won't this work?lazysoci.alsabreW4K3@lazysoci.al to RegEx@programming.dev · 1 month agomessage-square12linkfedilinkfile-text
(?<!\d)\d+\.\d+ should match the numbers at the end of the lines and yet it won’t. What am I doing wrong?
minus-squarebizdelnick@lemmy.mllinkfedilinkarrow-up5·edit-21 month ago What am I doing wrong? Not specifying the regex engine you use, first of all. Second, also describe what you mean by numbers that you want to match.
minus-squaresabreW4K3@lazysoci.alOPlinkfedilinkarrow-up1·1 month 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.
minus-squarebizdelnick@lemmy.mllinkfedilinkarrow-up2·29 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?
minus-squaresabreW4K3@lazysoci.alOPlinkfedilinkarrow-up1·28 days agoSorry 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! 🥺
minus-squarebizdelnick@lemmy.mllinkfedilinkarrow-up2·29 days agoBTW if you don’t need to capture the number, \d$ should match what you need. If regex syntax supports \d, of course.
minus-squaresabreW4K3@lazysoci.alOPlinkfedilinkarrow-up1·28 days agoThe number is the bit I want to capture.
Not specifying the regex engine you use, first of all. Second, also describe what you mean by numbers that you want to match.
Sorry, I have no clue.
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.
What do you use to apply your regex? Programming language, library, command line tool etc.
Is it decimal? One digit or multiple digits? Natural, rational?
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.
An ePub Reader called Legado
In the screenshot above, you can see it differs. I feel like I’m not doing your kindness justice with my sparse information, sorry! 🥺
BTW if you don’t need to capture the number,
\d$
should match what you need. If regex syntax supports\d
, of course.The number is the bit I want to capture.