Java String Remove removeSpecialCharsForSQLRegExp(String _s)

Here you can find the source of removeSpecialCharsForSQLRegExp(String _s)

Description

remove Special Chars For SQL Reg Exp

License

Open Source License

Declaration

public static String removeSpecialCharsForSQLRegExp(String _s) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.ArrayList;

public class Main {
    private static ArrayList<String> alReplacements = new ArrayList<String>();

    public static String removeSpecialCharsForSQLRegExp(String _s) {
        String _r = "";

        for (int i = 0, m = _s.length(); i < m; i++) {
            char c = _s.charAt(i);

            if (false == alReplacements.contains("" + c)) {
                _r = _r.concat("" + c);
            }/*w w  w  . jav  a 2 s . c  om*/
        }

        return _r;
    }
}

Related

  1. removePunctuation(String value)
  2. removeRecursive(Object json, String keyToRemove)
  3. removeSomeOne(String words, int count)
  4. removeSpaces(String orig)
  5. removeSpecialChars(final String word)
  6. removeUnusedData(String songData)
  7. removeWaitStatus(String nodeInfo)
  8. removeWhitespace(String inputString)
  9. splitLine(String s, boolean removeNewLine)