TheItalian has asked for the wisdom of the Perl Monks concerning the following question:
and has to become like that:### [b]word[/b] text ###
### <TAG>word</TAG> text ###
but it doesnt work....seems like it doesnt match the escape character "\n"... i guess that's because windows uses the combination "end of line+cr" to "sign" the "enter" key.... so that the only "\n" doesnt actually match with anything in the text.... but... i have tried using "\r\n" or "\n\r"... but it doesnt work as well :-( any suggestion?s/\#\#\#\n\[b\](.+)\[\/b\]/<TAG>\1</TAG>/g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: \n on a TXT file
by ikegami (Patriarch) on May 27, 2009 at 22:19 UTC |