Tóc gió thôi bay
Thành viên mới

- Tham gia
- 29/7/14
- Bài viết
- 21
- Được thích
- 15
Cháo lòng quá là ngon. Đập một quả trứng và cắt 2, 3 quẩy nữa thì tuyệt vời. Mà phở cũng ngon, mì xào dòn cũng tuyệt.
Cũng cháo lòng nhưng nấu hơi khác chút.
Mã:Function RepeatN(ByVal cell_str As String, ByVal repeat_count As Long, _ Optional ByVal phan_biet_hoa_thuong As Boolean = False) As String Dim re As Object, s As String, item cell_str = Replace(cell_str, " ", "") Set re = CreateObject("VBScript.RegExp") re.Global = True re.ignorecase = Not phan_biet_hoa_thuong For Each item In Split(cell_str, ",") If item <> "" Then re.Pattern = "(?:^|,)" & item & "(?=(?:,|$))" If re.Execute(cell_str).Count >= repeat_count Then s = s & item & ", " cell_str = re.Replace(cell_str, "") End If End If Next item Set re = Nothing If s <> "" Then RepeatN = Left(s, Len(s) - 2) End Function
Mình ngèo nên chỉ ăn cá khô ?
Mã:
Function fst(cell, n) As String
For Each e In Split(cell, ",")
t = Trim(e): s = "," & t & ","
If t <> "" Then
st = st & s
If Len(st) - Len(Replace(st, s, "")) = n * Len(s) Then _
If fst = "" Then fst = fst & t Else fst = fst & ", " & t
End If
Next
End Function