Skip to content

Instantly share code, notes, and snippets.

@guimeisang
Created September 26, 2017 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guimeisang/391a4854381482dc91b3ac770014dc8b to your computer and use it in GitHub Desktop.
Save guimeisang/391a4854381482dc91b3ac770014dc8b to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/dazaqas
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="sdfdsfsdf">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
var str = 'tank是坦克英文名称';
console.log(str.match(/[^-~]/g));
</script>
<script id="jsbin-source-javascript" type="text/javascript">
var str = 'tank是坦克英文名称';
console.log(str.match(/[^-~]/g));
</script></body>
</html>
var str = 'tank是坦克英文名称';
console.log(str.match(/[^-~]/g));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment