গো U রেজেক্স
🌈গো U রেজেক্স কি?
📋গো U রেজেক্স হলো সর্বনিম্ন দৈর্ঘ্যের মিল খোঁজা পদ্ধতি।
⚒️গো U রেজেক্স সর্বনিম্ন দৈর্ঘ্যের মিল খোঁজা ব্যবহৃত হয়।
গো U রেজেক্স সর্বনিম্ন দৈর্ঘ্যের মিল খোঁজা উদাহরণ।
go
package main
import (
"fmt"
"regexp"
)
func main() {
string := "<b>হ্যালো</b><i>বিশ্ব</i>"
pattern := regexp.MustCompile(`<.*?>`)
for _, match := range pattern.FindAllString(string, -1) {
fmt.Println(match)
}
}