remove Hr markdown - Java java.lang

Java examples for java.lang:String Markdown

Description

remove Hr markdown

Demo Code


//package com.java2s;

public class Main {
    private static String removeHr(String brief) {
        brief = brief.replace("---", "");
        brief = brief.replace("***", "");
        brief = brief.replace("- - - -", "");
        return brief;
    }//www  .jav a 2  s. c om
}

Related Tutorials