0

(cd+)+?

I have cd+ to {cd, cdd, cddd, ...} but I do not understand how to apply the + from the parenthesis.

I saw that if it is like (d*)* then it is same as d* but here its not just d* in it but c without * or + and that is confusing me.

  • 1
    Did you [try it](https://regex101.com/r/8tuTIn/1)? – infinitezero Jul 14 '23 at 14:00
  • The superscript `+` is not the same as `+`. – Wiktor Stribiżew Jul 14 '23 at 14:16
  • Are you saying this is your regex `(cd⁺)⁺?` or is it this one `(cd⁺)+?` any you've made a typo. Both are valid regex. In these cases `⁺` is not a quantifier it's just a literal. `+` on the otherhand is a quantifier. – sln Jul 14 '23 at 19:37
  • The competing visual signs are in fact `00207A ⁺ SUPERSCRIPT PLUS SIGN` and `00002B + PLUS SIGN` – sln Jul 14 '23 at 19:45

0 Answers0