regex - I need to match ID video of a facebook video link -


i need match id video of facebook video link:

https://www.facebook.com/dibattista.alessandro/videos/689793084466092/?pnref=story

p.s.

  • dibattista.alessandro dynamic;
  • https or http;
  • ://www.facebook.com/ , /videos/ static;
  • /?pnref=story maybe not exist.

i'm not pratic regular expressions.

can me?

you can use regex positive ahead this:

\d+(?=\/\?|$) 

working demo


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -