.* and .*?

Cing Sian Dal
1 min readNov 26, 2019

--

Any characters

Text: _One__Two_-------------------------------Regex (1): _(.*)_Result:[1]: _One__Two_-------------------------------Regex (2):_(.*?)_Result:[1]: _One_
[2]: _Two_

--

--

Cing Sian Dal
Cing Sian Dal

Written by Cing Sian Dal

Don’t follow me. I wrote junks here. Follow me on Twitter instead.

No responses yet