PHP – regular expressions: How to get a URL with unique parameters such as an array

1 1 am in trouble because I do not know about regular expressions in PHP.

The original string is below.

$ Text = & # 39;
Lorem Ipsum carrots
   
   
   
   
  improved rebates
   
   
   
   
  who discovered the pleasures
   
   
   
   
  And blinded by hate or pleasure
   
 
 
 
& # 39 ;;

Matrix wants the return is less than 1

$ URLs = array (
"Https://example.com/?id=123456890"
"Https://example.com/?id=0112233445"
"Https://example.com/?id=11112223333"
"Https://example.com/?id=111122233334444"
);