window.ENTITIES={'/api/snippets/javascript/js%20count%20vowels%20in%20string%20using%20regex':[{"result":true,"message":null,"batch":{"type":"javascript","name":"js count vowels in string using regex","items":[{"id":"jEJA01","type":"javascript","name":"js count vowels in string using regex","content":"const regex = /[aeiouy]/g;\n\nconst text = 'Count vowels in this text.';\nconst result = text.match(regex);\n\nif (result) {\n console.log(result.length); // 7\n}","source":"","author":{"id":"YoWEwD","name":"Jacob","avatar":"1629129663922__YoWEwD__w40px_h40px.jpg","points":532,"role":"BASIC"},"creationTime":1638822833000,"updateTime":1638889806000,"removalTime":null}]}}]};