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)'...
For the Google Prettify syntax highlighter for the Wolfram Language, I need to match all identifiers against a large list of about 7000 built-in function names to highlight them as keywords. In the past, I simply used a regex consisting of many alter...
I have been trying to resolve this for the past 2 days...  Please help me in understanding why this is happening. My intention is to just select the <HDR> that has a <DTL1 val="92">.....</HDR>  This is my regular expression...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.