Regex + — One or More (Greedy)

+ matches the preceding element one or more times, greedily. For example a+ matches "a", "aaa" but not "". Add ? for lazy matching (+?).

Open the interactive DevRef Hub tool →

Key facts

Token+
Repetitions1 to ∞
ModeGreedy (max length)
Lazy form+?

Frequently asked questions

What does + mean in regex?

One or more repetitions of the preceding element, greedy by default.

+ vs *?

+ requires at least one match; * allows zero.

Related pages

Regex + — Plus Quantifier is part of DevRef Hub on GOAT Lab — a free reference you can use without signing up, and it works offline. Open the tool above for any custom value.

Advertise

Part of GOAT Lab — 26 free, browser-based science, engineering and developer tools. No sign-up.