Jump to content
UBot Underground

Recommended Posts

Hi regex guys, Im struggling on this.  (using helloinsomnias regex builder)

 

I have a string that looks like this

 

 1 | ... | 4 | 5 | 6 | 7 | 8 | 9 | 10 | ... | 46   Results: 601-700 of 4526  Per Page: 20 50 100

 

of course that data changes per loop

 

I am wanting to be able to set the final number before the word results into a var

 

So, in this case, I'm just trying to get: 46

 

Any ideas? (or examples)

Link to post
Share on other sites

Hi regex guys, Im struggling on this.  (using helloinsomnias regex builder)

 

I have a string that looks like this

 

 1 | ... | 4 | 5 | 6 | 7 | 8 | 9 | 10 | ... | 46   Results: 601-700 of 4526  Per Page: 20 50 100

 

of course that data changes per loop

 

I am wanting to be able to set the final number before the word results into a var

 

So, in this case, I'm just trying to get: 46

 

Any ideas? (or examples)

 

 

Not sure if theres a line break there or not? Try this:

\d+(?=\s\s\sResults)
Link to post
Share on other sites

man that worked perfectly - I really appreciate it.

 

I'll reverse engineer it in the regex builder so that I understand it better and hopefully wont have to ask for much more help on my regex.

 

Thanks again.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...