Got more questions? Find advice on: ASP | SQL | XML | Windows
Welcome to RegexAdvice Sign in | Join | Help

Re: How to make a carrige return?

  •  04-24-2007, 12:22 PM

    Re: How to make a carrige return?

    To keep truly platform independent when using Java you should always consider using

    System.getProperty("line.separator");

    instead of \r, \n or the combination of both.

    String NewText = matcher.replaceAll("-- $0 *by migration" + System.getProperty("line.separator") + "Second_String");

     

    Filed under:
View Complete Thread