About 8,690,000 results
Open links in new tab
  1. What is the difference between (.*?) and (.*)? in regex?

    This feature is much more useful when you have a more complicated regex. Here, the parser doesn't have to capture anything at all to get a match: the asterisk allows any number of …

  2. regex - What are ^.* and .*$ in regular expressions? - Stack Overflow

    Nov 30, 2011 · That looks like a typical password validation regex, except it has couple of errors. First, the .* at the beginning doesn't belong there. If any of those lookaheads doesn't succeed …

  3. regex - What is the difference between .*? and .* regular …

    On greedy vs non-greedy. Repetition in regex by default is greedy: they try to match as many reps as possible, and when this doesn't work and they have to backtrack, they try to match one …

  4. regex - Question marks in regular expressions - Stack Overflow

    Oct 24, 2011 · Now, by default, the RegEx e will find the third letter e in word There. There ^ However if you don't want the e which is immediately followed by r, then you can use RegEx …

  5. Regex that accepts only numbers (0-9) and NO characters

    I need a regex that will accept only digits from 0-9 and nothing else. No letters, no characters. I thought this would work: ^[0-9] or even \d+ but these are accepting the characters : ^,$,(,), etc. …

  6. regex - Regular Expressions- Match Anything - Stack Overflow

    Regex: /I bought.*sheep./ Matches - the whole string till the end of line. I bought sheep. I bought a sheep. I bought five sheep. Regex: /I bought(.*)sheep./ Matches - the whole string and also …

  7. regex - What does \d+ mean in a regular expression? - Stack …

    Aug 17, 2022 · What does \\d+ mean in a regular expression?

  8. symbols - What is the meaning of + in a regex? - Stack Overflow

    Oct 3, 2010 · A possessive quantifier is an advanced feature of some regex flavours (PCRE, Java and the JGsoft engine) which tells the engine not to backtrack once a match has been made. …

  9. Difference between regex [A-z] and [a-zA-Z] - Stack Overflow

    I am using a regex to program an input validator for a text box where I only want alphabetical characters. I was wondering if [A-z] and [a-zA-Z] were equivalent or if there were differences …

  10. RegEx for matching "A-Z, a-z, 0-9, _" and "." - Stack Overflow

    May 14, 2019 · regex in javascript, match only A-z and _? 6 Regular Expression to validate only A-Z, a-z, 0-9, space, period, hyphen - exclamation mark ! question mark ? quotes "