Python Regex: difference between '.+' and '.*'

前端 未结 0 1453
-上瘾入骨i
-上瘾入骨i 2020-11-22 14:29

I am new to python regex and I was using positive lookahead to find all the characters before \'#\'

string = \'Hello #World\'
pattern1 = .*(?=[#])
pattern2 =          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题