3 сент. 2015 г. ... var regex = new RegExp( regexS ); var tmpURL = window.location.href; var results = regex.exec( tmpURL ); if( results == null ) return"";

  supportcenter.devexpress.com

25 сент. 2023 г. ... If the match fails, the exec() method returns null , and sets the regex's lastIndex to 0 . ... This property is only present when the d flag is ...

  developer.mozilla.org

exec() searches string for text that matches regexp . If it finds a match, it returns an array of results; otherwise, it returns null . Element 0 of the ...

  www.oreilly.com

13 июл. 2022 г. ... exec returns null and resets regexp. ... Told me that he was writing about regexp in a website called Javascript Info. ... const regex = new RegExp ...

  javascript.info

10 июл. 2019 г. ... Consider the following Javascript script: 12345678const regex = //gconst testString = ""// Check whether testSt.

  ikely.me

25 апр. 2014 г. ... re.lastIndex = 0 allows you to reset the search index to perform a second search starting from the beginning. Without it, the search begins at ...

  stackoverflow.com

18 янв. 2011 г. ... The regex object has a property lastIndex which is updated when you run exec . So when you exec the regex on e.g. "I have a cat and a dog too.", ...

  stackoverflow.com

9 нояб. 2017 г. ... will return null if there's no match. So either the regex is wrong, $input is wrong, or both. Either way, if there's no match, you're ...

  forum.freecodecamp.org

6 мая 2018 г. ... If the string matches the expression, the return value is an array holding all the specific information, otherwise exec returns null . The ...

  www.stefanjudis.com

The exec() method tests for a match in a string. If it finds a match, it returns a result array, otherwise it returns null. Browser Support. exec() is an ...

  www.w3schools.com

Page generated - 0.3991868496 (281809fd9e932f3fbd6b79faf678ea0b)