There is regex feature to find words instead of "Ctrl + F" in some editor like VS Code, I'm trying to find a word after a specific word with some another lines.   For example, how to use regex to filter those "someFunction" with t...
I am trying to split string in 3 different parts with regex.  I can only get function parameters from string but i also want to other parts of the string  const regex = /(\(.*?\))+/g; const sampleString = 'collection.products(take:12|skip:16)'...
I have written a regular expression to match some tags that look like this:  @("hello, world" bold italic font-size="15")   I want the regular expression to match these strings: ['hello, world', 'bold', 'italic'...
I'm very puzzled about why this is happening, and hoping someone can explain the mechanics of what is happening in the regex engine.  Whilst working on codewars exercise "Did you mean...?" in Javascript, I was trying to calculate how many...
This question already has answers here:...
The following code is taken from Jon Resig's book Secrets of JavaScript Ninja    var html = "<div class='test'><b>Hello</b> <i>world!</i></div>"; var results = html.match(/<(\/?)(\w+)([^>]...
I'm trying to solve a string matching problem with regexes. I need to match URLs of this form:  http://soundcloud.com/okapi23/dont-turn-your-back/   And I need to "reject" URL of this form:  http://soundcloud.com/okapi23/sets/happily-reve...
I'd like to match a three-part string. The first part consists of one or more a characters, the second part consists of one or more b characters, and the third part consists either of zero or more c characters or zero or more C characters, but no...
Why does:  /(\[#([0-9]{8})\])/g.exec("[#12345678] [#87654321] [#56233001] [#36381069] [#23416459] [#56435355]")   return     ["[#12345678]", "[#12345678]", "12345678"]   I want it to match all those numbers but it appe...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.