S
S
shnicel2016-01-13 23:49:34
Regular Expressions
shnicel, 2016-01-13 23:49:34

Help with a regular expression please, how to pull out the value?

there is such a contraption #access_token=699600f84569c1686d39fbd3a6511116b3cb6bbf5169d05c5be384355e381080ea033a7576e05efaf8&expires_in=86400&user_id=2693842
how do I pull out everything that is after the next one &
user_id=2693842

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2016-01-14
@shnicel

/access_token=(\w+).*user_id=(\d+)/
https://regex101.com/r/aA8rB9/1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question