Skip to content

Instantly share code, notes, and snippets.

@liangzai-cool
Created December 5, 2017 06:19
Show Gist options
  • Save liangzai-cool/d200e4c5dfe17dbb69657f9f31ea5a7d to your computer and use it in GitHub Desktop.
Save liangzai-cool/d200e4c5dfe17dbb69657f9f31ea5a7d to your computer and use it in GitHub Desktop.
替换ASCII为160的空白字符
public class Test {
public static void main(String[] args) {
String s = "Iowa State University                                                                    Experimental Particle Physics                                                                            James Cochran, P.I.This proposal comprises activities in experimental high energy physics at Iowa State University that continue efforts at the CERN Large Hadron Collider (LHC) with the ATLAS Experiment under DOE grant DE-SC0009974 (2013-2016). Professors Chen, Cochran, and Prell continue to build on current work to search for physics beyond the standard model (BSM), especially new heavy particles, using techniques that the group has recently developed to identify boosted jets from W/Z bosons, top quarks, and Higgs bosons. In addition to the group's development of new search techniques, its searches for BSM physics, and its longstanding service contributions to the ATLAS tracking subsystems, the group has begun an upgrade R&D project to develop quality control techniques for the stave cores of the Inner Tracker (ITk) for the ATLAS Phase 2 upgrade.   P.I. Cochran serves as the Deputy Operations Manager for U.S. ATLAS.";
System.out.println(s.replaceAll("[\\u00A0]+", ""));
}
}
@liangzai-cool
Copy link
Author

过滤SQL特殊字符时需考虑此字符

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment