dear monks,
I have a small question concerning with database fields and regex. As far I understood in a flat file (e.g. a .txt file) the end of a line is marked by \n (at least on UNIX-like systems). Well, how strings are terminated in database field?
For instace, if a field is filled by a string like this "*E2@x*PAP" I can match the pattern E2 (between * and @x) but how can I match the pattern PAP (between * and ...)? If I use "find everything between * and \n" it doesn't work.
Moreover I have thousand of these pattern (character sequences to be matched), thus I suppose I need expressions like (.*?) or stuf like that.
p.s. I use MySQL (I don't know if it is relevant!)