Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    private static final String REGEX_HTML = "(?s)<[oO]{1}[ptinPTINOo]{5}[^>]*>|<[oO]{1}[lL]{1}[^>]*>|(?!<[oO]{1})<[^oO<\\w=@;:.]*[\\w\\/]+.*?>";

    public static String noHTMLButSmiley(String text) {
        if (text == null)
            return "";
        return text.replaceAll(REGEX_HTML, "");
    }
}