Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



 399

How should i cap this on regex?

by MovistarSucks - 10 December, 2020 - 11:09 PM
This post is by a banned member (MovistarSucks) - Unhide
1.098
Posts
369
Threads
4 Years of service
#1
<div class="deposite-line">
                    <b>0.00</b> << Thing i wanna capture
                    <span>USD</span>
This post is by a banned member (Tsunade) - Unhide
Tsunade  
Supreme
786
Posts
323
Threads
4 Years of service
#2
(This post was last modified: 10 December, 2020 - 11:12 PM by Tsunade.)
<b>(.*?)<\/b> or <b>(.*?)</b>
try both
This post is by a banned member (Sango) - Unhide
Sango  
Heaven
4.635
Posts
1.079
Threads
5 Years of service
#3
(?<=<b>)[0-9]*?\.[0-9][0-9](?=<\/b>)
This post is by a banned member (MovistarSucks) - Unhide
1.098
Posts
369
Threads
4 Years of service
#4
(10 December, 2020 - 11:12 PM)Sango Wrote: Show More
(?<=<b>)[0-9]*?\.[0-9][0-9](?=<\/b>)

This one throws an empty value
This post is by a banned member (Sango) - Unhide
Sango  
Heaven
4.635
Posts
1.079
Threads
5 Years of service
#5
(10 December, 2020 - 11:16 PM)MovistarSucks Wrote: Show More
(10 December, 2020 - 11:12 PM)Sango Wrote: Show More
(?<=<b>)[0-9]*?\.[0-9][0-9](?=<\/b>)

This one throws an empty value

it should just capture the numbers, test it on https://regex101.com/
This post is by a banned member (MovistarSucks) - Unhide
1.098
Posts
369
Threads
4 Years of service
#6
(10 December, 2020 - 11:16 PM)MovistarSucks Wrote: Show More
(10 December, 2020 - 11:12 PM)Sango Wrote: Show More
(?<=<b>)[0-9]*?\.[0-9][0-9](?=<\/b>)

This one throws an empty value

Nvm i'm just dumb KSZ

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 6 Guest(s)