fastRegexCaptures.js 936 B

12345678910111213141516171819
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. writeLine(/.*(aaa.*aaa)/.exec("aaaaaa"));
  6. writeLine(/.*a(.*aaa.*)a.*/.exec("aaaaa"));
  7. writeLine(/.*(\.facebook\..*)/.exec("www.facebook.com"));
  8. writeLine(/.*(aamber aamber aamber)/.exec("aamber aamber aamber."));
  9. writeLine(/.*(this (is this is) this)/.exec("this is this is this"));
  10. writeLine(/.*(this is top tier toy)/.exec("this is top tier toy"));
  11. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  12. // Helpers
  13. function writeLine(str)
  14. {
  15. WScript.Echo("" + str);
  16. }