0

I have this string ?foo=bar&language=fr&bar=foo or this string ?language=fr

I want to capture (fr) so i did the below:

/language=(.*)(?:\&)?/

A link for the regex, https://regexr.com/440ga

Waheed
  • 608
  • 1
  • 5
  • 20

0 Answers0