There is a conditional application that allows you to write messages with secret codes inside the database. The secret code is written inside the curly braces. It is necessary to implement such a functional so that the message itself is recorded in the database and secret codes are allocated from it into a separate column (that is, text from curly brackets). How can I implement this functionality without using the functions preg_ (), ereg (), split (), explode () (the task does not imply their use)? Example: lala-} blab {la! =)) :( {457} 7775 32 {98} respectively 457 and 98 are codes.
- If only they would bother and showed an example of a message with secret codes. - Arsen
- What is the essence of the task? to work with strings without using functions for robots with strings? what for? - Arendach
- @Arendach is such a TZ ... - Kleymenov68
- Since formally the number of such codes in the field is not limited, the task with the MySQL 5+ version is solved only in the stored procedure format. In version 8+ you can use recursive CTE. without using the functions preg_ (), ereg (), split (), explode () (the task does not imply their use) For what reason? - Akina
|