D
D
Dauren S2018-07-24 19:40:52
Regular Expressions
Dauren S, 2018-07-24 19:40:52

Find words in quotation marks?

Need to find the words in double quotes
did so
preg_match_all('/"(.*?)"/',$line,$var)
But Russian letters are not displayed correctly.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
cybernoob, 2018-07-24
@cybernoob

So it seems that all my life I have been escaping the quotation mark, like although there should be no problems with the Russian language, have you tried the u modifier? Have you checked the encoding of files, servers, lines? preg_match_all('/\"(.*?)\"/',$line,$var)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question