Jump to content



Photo

Is Someone Out There Who Could Translate This Link Into Regex?


  • Please log in to reply
3 replies to this topic

#1 papillon121

papillon121

    Advanced Member

  • Members
  • PipPipPip
  • 53 posts
  • OS:Windows 8
  • Total Memory:< 1Gb
  • Framework:v3.5
  • License:Standard Edition

Posted 19 June 2017 - 09:52 AM

Hello Gyus and Girls,
 
since 2 hours i watched Videos and tutorials but i always get Errors...
 
could anyone translate this link into regex, so i can use this?
 
The Link is changing everytime so i need to scrape it from changing mails. Its:
 
https://www.hellowor...a3-b9f856226b44
 
2hzix8v6.png


Edited by papillon121, 19 June 2017 - 09:54 AM.


#2 HelloInsomnia

HelloInsomnia

    Advanced Member

  • Moderators
  • 2699 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 19 June 2017 - 12:25 PM

Try this

https\:.*?token=[a-zA-Z0-9-]+


#3 papillon121

papillon121

    Advanced Member

  • Members
  • PipPipPip
  • 53 posts
  • OS:Windows 8
  • Total Memory:< 1Gb
  • Framework:v3.5
  • License:Standard Edition

Posted 19 June 2017 - 12:55 PM

 

Try this

https\:.*?token=[a-zA-Z0-9-]+

thank you very much! id tried it with editpad pro 7 and this is whats worked for me: https:\/\/www\.helloworld\.com\/de\/email-confirmation.*



#4 HelloInsomnia

HelloInsomnia

    Advanced Member

  • Moderators
  • 2699 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 19 June 2017 - 03:46 PM

thank you very much! id tried it with editpad pro 7 and this is whats worked for me: https:\/\/www\.helloworld\.com\/de\/email-confirmation.*

 

That is not going to be a good idea, it will grab things after the link as well. If you only have the link and nothing else then it would work but I highly suggest not using that because it's really bad practice. Especially if that link has text or white space or anything after it those things will be grabbed as well.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users