B
B
BlackReader2022-03-17 08:26:43
PHP
BlackReader, 2022-03-17 08:26:43

How to get words in quotes?

Need to find all values ​​in "" and express the reference to a variable

{
        "token": "jea5zS2v",
        "hls": "https://191.168.1.191:8080/hls/jea5zS2v/master.m3u8",
        "sid": "sClNdLXJ"
 }

You need to get https://191.168.1.191:8080/hls/jea5zS2v/master.m3u8 without quotes.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2022-03-17
@BlackReader

No need for regex here, it's json, decode it and learn how to work with the data structures it contains.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question