V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
seedlive
V2EX  ›  问与答

求正则表达式 两个,'………………,'之间 包含至少一个'符号 但不包含,的表达式

  •  
  •   seedlive · Jun 22, 2014 · 4218 views
    This topic created in 4336 days ago, the information mentioned may be changed or developed.
    9 replies    2014-06-23 15:18:47 +08:00
    chshouyu
        1
    chshouyu  
       Jun 22, 2014
    表示没看懂需求
    seedlive
        2
    seedlive  
    OP
       Jun 22, 2014
    比如 ,'三楼'401', 这种类型的就需要找出来 但是 不包含 ,'三楼','401',这种
    seedlive
        3
    seedlive  
    OP
       Jun 22, 2014
    或是 ,''''''''', 这种 但不包含,'','',这种
    zdhxiong
        4
    zdhxiong  
       Jun 22, 2014
    ,'[^,]*'+[^,]*',
    lululau
        5
    lululau  
       Jun 22, 2014
    /'[^,]*'[^,]*'/
    LazyZhu
        6
    LazyZhu  
       Jun 22, 2014   ❤️ 1
    授人以魚不如授人以漁
    正则表达式30分钟入门教程 http://deerchao.net/tutorials/regex/regex.htm

    另外不要重复发帖,重复发帖不会加快你解决问题的速度。
    rrfeng
        7
    rrfeng  
       Jun 23, 2014
    我怎么看起来直接用 , 分割就完成任务了呢?
    seedlive
        8
    seedlive  
    OP
       Jun 23, 2014
    '[~,]*'+[~,]*' 搞定 在ultraedit 里面应该是这样:)谢谢楼上兄弟们的启示
    seedlive
        9
    seedlive  
    OP
       Jun 23, 2014
    [~,]'[~,]
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3484 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 11:37 · PVG 19:37 · LAX 04:37 · JFK 07:37
    ♥ Do have faith in what you're doing.