Guys, maybe someone came across a similar. I parse txt files, there are days of the week, and I need to insert a page break before each day of the week (except Monday) and save the files to rtf. How to identify this very gap? Everyone knows " \n " and so on, but what about more specific characters? Thank!
|
\'XXwhere XX is the hexadecimal code of the character. - nick_n_apreg_replace('/вторник|среда|четверг|пятница|суббота|воскресенье/i', "день\XX", $file)? - forever_young\pard;(transfer to a new sheet) and transfer dates (paragraph)\par;(first koment wipe) - nick_n_a{\\rft1\\ansi\\ansicpg1251\\deff0\\deflang1049{then we write the text, with a replace of characters on those that rtf understands (ie, remove \ {} on screened, \ n -> \\ par; translation of the page -> \\ pard; and Russian characters are better converted into\'ХХ.). Then write the tail}}. Everything. I use the double slash because with ++ and in my opinion php also require doubling the slash, so that it comes out as a slash. - nick_n_a