false > /^JavaScript(?=\:)/.test("JavaScript: It is fun") true > /^JavaScript(?=\:)/.exec("JavaScript: It is fun") [ 'JavaScript', index: 0, input: 'JavaScript: It is fun' ] > /^JavaScript(\:)/.exec("JavaScript: It is fun") [ 'JavaScript:', ':', index: 0, input: 'JavaScript: It is fun' ]
= /java/g undefined > reg.exec("javascript is not java") [ 'java', index: 0, input: 'javascript is not java' ] > reg.exec("javascript is not java") [ 'java', index: 18, input: 'javascript is not java' ] > /^Java/.test("Hello\nJava") false > /^Java/m.test("Hello\nJava") true