( Tyra3l | 2010. 06. 28., h – 14:26 )

ugye tudod hogy a php serialize altal generalt adat is sima plain text dolog?

ebbol a szempontbol ugyanugy viselkedik mindket megoldas.

btw: kicsit tulzasba viszed az irasjelek hasznalatat.

ps: http://kore-nordmann.de/blog/do_NOT_parse_using_regexp.html

It is quite easy to prove, that it is not possible to properly detect and parse recursive structures using regular expressions. When you have studied computer science you of course know Chomsky hierarchies and therefore know, that regular expressions are a type 3 grammar, also called regular languages, which are equivalent to finite state machines. (So you also know, that each regular expression is quite easy to transform into a FSM).

Tyrael