Answer the question
In order to leave comments, you need to log in
Parse the signature of the signature of the letter?
Hello!
Colleagues, please share your experience.
It is necessary to write a parser that will isolate the position and name of the sender from the signature of the letter.
Has anyone already faced this issue? Are there any developments. There is no dependency on the development language. Interested in the algorithm itself and the pitfalls.
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Your problem is solved with regular expressions. The dialect of regular expressions depends on the programming language you choose. For example, you can read about regular expressions in PHP here php.net/manual/ru/refs.basic.text.php
The algorithm is something like this:
1) We read the text of the letter into a variable.
2) We are looking for matches in the text using a regular expression.
3) Perhaps the received data needs to be validated. For example, to compare the received position with the reference book in order to make sure that the information found is adequate, etc.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question