PHP Regex to grab a account id from url -


example url: www.domain.com/viewpage.php?account_id=123456789

i have php script grabs hyper-links on webpage, want filter shows above link (www.domain.com/viewpage.php). once filters down specific php page, want grab account id links.

need little regex please :/

p.s don't want use parse url function

you can try using following regex,

\d+$ 

working demo


Comments

Popular posts from this blog

gcc - MinGW's ld cannot perform PE operations on non PE output file -

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

c# - Search and Add Comment with OpenXML for Word -