php - What does +? mean in regex? -


i have seen +? lot in regex, i'm not sure stands for. know + means 1 or more, , ? means 0 or 1. +? means 0 or more? in case, why not use *, means 0 or more?

i need know if +? means 0 or more, or means different. i'll delete question if it's annoying.

the ? makes + "lazy" instead of "greedy". means tries match few times possible, instead of trying match many times possible.


Comments