Function similar !preg_replace

Hello everybody!

I need a function similar to if(!preg_replace("my_regex", "my_string)) I tried to compare values and it didn't work.

I'll explain, I have a variable "token" which is extracted from the webhook base url.

In case I extract everything which is between the slash after the .com and the last slash in the URL I need a simpler way to check this instead of extracting text.
 

Attachments

  • 20230801_141605.jpg
    20230801_141605.jpg
    40.9 KB · Views: 9

Endercraft

Moderator (& bug finder :D)
You can use substring values 31 and 67. I use that sometimes and it works perfectly.
 
Last edited:
Top