Jump to content
UBot Underground

Recommended Posts

I am trying to learn regex but always fail with code

 

here is what i wana achieve

<outerhtml=r"<a href=\"/blogger.g?blogID=2222994297700933331#editor/src=dashboard\" class=\"GEE3RVNDAX\">Start blogging!</a>">

I just want blogID  no 2222994297700933331

 

Link to post
Share on other sites

Np.

 

Let me help you...first parenthesis describe that string should starts with "blogID=" and the last pair describes that it should end with "#".

 

Between those pairs you specify what do you want regex to return, and in our case we want number, so we specify that with "\d+", which describes that result should contain at least one digit.

  • Like 1
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...