Timeline for how to compare php regular expression output to a string in a switch function?
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 20, 2018 at 18:09 | history | edited | Spoody | CC BY-SA 4.0 |
Added warning
|
Jul 20, 2018 at 18:07 | vote | accept | Renz Daitol | ||
Jul 20, 2018 at 18:07 | comment | added | Spoody | @Edward the only way we can be sure is with OP's feedback. | |
Jul 20, 2018 at 18:05 | comment | added | Edward | yep, i deleted my answer, because stackoverflow.com/questions/5292937/… | |
Jul 20, 2018 at 18:00 | comment | added | Spoody |
@Edward he will actually get http://example , so this depends on the input. But this works with what OP gave in his question.
|
|
Jul 20, 2018 at 17:59 | history | edited | Spoody | CC BY-SA 4.0 |
added 257 characters in body
|
Jul 20, 2018 at 17:57 | comment | added | Edward |
wait... what if there is no subdomain. ie http://example.com , he will get (string) example ....
|
|
Jul 20, 2018 at 17:55 | history | answered | Spoody | CC BY-SA 4.0 |