Menu

alternation | with regex

birdspider
2007-10-11
2012-11-13
  • birdspider

    birdspider - 2007-10-11

    Hi

    sorry if this has been discussed before.

    I am trying to replace some xml stuff and would like to do something like this:

    <[A-z]/>|<([A-z]+)>[.|\n]*</[A-z]+>

    which should match closed xml tabs (i.e. <stuff/>)
    as well as (emtpy or not) normal xml tabs (i.e. <stuff> XXX </stuff>)

    my main question is if the "|" operator which should allow alternatives in the regex expression is supported by notepad++

    birdspider

     
    • pshute

      pshute - 2007-10-12

      The available regular expressions are discussed in http://notepad-plus.sourceforge.net/uk/regExpList.php .

       
MongoDB Logo MongoDB