A
A
Arthur2022-03-24 07:44:25
PHP
Arthur, 2022-03-24 07:44:25

How to check a file for latin characters?

I need to check the file for the presence of Latin characters, there is a file (.txt) weighing about 600 mb, its contents are in Cyrillic, I need to find Latin characters in it, how can I do this? In which direction to go please tell me. It needs to be done in PHP.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolai Savelyev, 2022-03-24
@AgentSmith

regular expression
[a-zA-Z]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question