Processing of file in text format by regular expression



  • I'm writing Perl. So there's a text file, the end of the file looks like:
    Two line translations, text, two line translations, point

    I've got to get this text out, but somehow it's kind of a banal regular expression. //n/n([/w/r/n]+)/n/n/./ It doesn't work. Where did I make a mistake in the regular expression?



  • Somehow:

    /^(\r?\n){2}(.+)(\r?\n){2}\./
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2