Tag: tweets

从string中删除推特正则expression式

我有一张填充了推文的Excel表格。 有几个条目包含@blahtypes的string等。 我需要保留文本的其余部分,并删除@blah部分。 例如:“@ villos hey dude”需要转化为:“hey dude”。 这是我到目前为止所做的。 Sub Macro1() ' ' Macro1 Macro ' Dim counter As Integer Dim strIN As String Dim newstring As String For counter = 1 To 46 Cells(counter, "E").Select ActiveCell.FormulaR1C1 = strIN StripChars (strIN) newstring = StripChars(strIN) ActiveCell.FormulaR1C1 = StripChars(strIN) Next counter End Sub Function StripChars(strIN As String) […]