regex equivalent of .split

ساخت وبلاگ

آخرین مطالب

امکانات وب

Vote count: 0

Can someone make a regex that separates characters into groups whenever there is a .? (Basically string.split('.');)

For example (the code part being each captured group): lala.laladklfha.ldskjf (indefinite)

It also needs to accept these: "hello" and ".hello"

I need something other than /w+/ because the regex needs to be able to take letters as splitters as well.

asked 10 secs ago
Seth Deegan

نویسنده : استخدام کار بازدید : 27 تاريخ : سه شنبه 22 خرداد 1397 ساعت: 3:40

تبلیغات در اینترنت