• This project
    • Loading...
  • Sign in

황진하 / 2017-1-WebServiceProgramming-2012104136

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Graphs
  • Network
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • 2017-1-WebServiceProgramming-2012104136
  • 10_JavaScriptForWebBrowser
  • 03.RegExp.html
  • 황진하's avatar
    수업 자료 추가 · 5de4926b
    5de4926b Browse Files
    황진하 authored 2017-03-09 11:36:59 +0900
03.RegExp.html 345 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
<html>
<head>
</head>

<body>
<script type="text/javascript">

var str="Hello world!";
//look for "Hello"
var patt=/Hello/g;
var result=patt.exec(str);
document.write("Returned value: " + result); 

//look for "W3Schools"
patt=/W3Schools/g;
result=patt.exec(str);
document.write("<br />Returned value: " + result);


</script>

</body>

</html>