anchor.diff:      {
           List events = m_eventConfDao.getEventsByLabel();
           StringBuffer buffer = new StringBuffer();
  -        
  +
  +        if (notice.getUei() != null && notice.getUei().startsWith("~")) {
  +            buffer.append("<option selected value=\""+notice.getUei()+"\">REGEX_FIELD</option>\n");
  +        } else {
  +            buffer.append("<option value=\"~^$\">REGEX_FIELD</option>\n");
  +        }
  +
           List excludeList = getExcludeList();
   	TreeMap<String, String> sortedMap = new TreeMap<String, String>();
   
  
positive.code:   <jsp:param name="breadcrumb" value="Choose Event" />
  </jsp:include>
  
  <script type="text/javascript" >
  
      function next()
  
negative.code:             document.events.submit();
          }
      }
  
  $(document).ready(function() {
  
    $("select#uei").change(function(e) {
      var label = $(e.target.options[e.target.selectedIndex]).text();
      $('#regexp').prop('disabled', label !== 'REGEX_FIELD');
    });
  
    $('#regexp').change(function(e) {
      var value = e.target.value;
      if (!value.match("^~")) {
        alert("Invalid regex field: [" + value + "], value does not start with ~\n" +
          "Resetting value back to default.\n"
        );
        e.target.value = e.target.defaultValue;
        return false;
      }
      var uei = $('#uei')[0];
      $(uei.options[uei.selectedIndex]).val(value);
      uei.selectmenu('refresh');
    });
    if ($('#regexp').val() === '~^$') {
      $('#regexp').prop('disabled', true);
    }
  
  });
  
  </script>
  
  