• 2023-11-06R语言字符串替换
    RgsubFunction gsub()functionreplacesallmatchesofastring,iftheparameterisastringvector,returnsastringvectorofthesamelengthandwiththesameattributes(afterpossiblecoerciontocharacter).Elementsofstringvectorswhichareno
  • 2023-06-10lua对url字符进行编解码
      localfunctionurlEncode(s)s=string.gsub(s,"([^%w%.%-])",function(c)returnstring.format("%%%02X",string.byte(c))end)returnstring.gsub(s,"","+")endlocalfunctionurlDecode(s)s=strin
  • 2023-02-13 logstash mutate gsub 正则替换内容
    记录下,网络设备默认有些日志内容无用,用正则替换删除input{    udp{host=>"127.0.0.1"port=>515type=>"Hillstone"}}filter{  mutate{   
  • 2022-12-31R语言对耐克NIKEID新浪微博数据K均值(K-MEANS)聚类文本挖掘和词云可视化
    2009年8月,新浪微博(micro-blog)开始服务,随后各家微博服务在国内得到广泛传播和应用"。微博具有文本信息短(140字包括标点符号)、词量少、裂变式传播、传播速度快、用词不
  • 2022-12-08lua模式匹配
    新入门skynet系列视频b站网址https://www.bilibili.com/video/BV19d4y1678X普通字符串模式字符串普通字符串在普通字符串中,字符\是转移字符。也就是说\有特殊