returning RegEx in Filter Examples

sgenzersgenzer Administrator, Moderator, Employee, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM Moderator Posts: 2,959 Community Manager
Hi...didn't RM6 and prior have the ability to use RegEx in Filter Examples?  It was very handy.  Now it's replaced with "expression" which jumps into the editor which I find clunky and slower than just using RegEx.  Is it possible to add an option in condition class with the Filter Examples operator called "Regular Expression" which basically just puts in the old 6.0 functionality?

Thanks!

Scott
0
0 votes

Duplicate · Last Updated

Comments

  • JEdwardJEdward RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 578 Unicorn
    It still does.  You're thinking of the 'attribute_value_filter' option.  Here just type in "target_att operator(=><etc) then a regular expression"

    For example:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <process version="7.0.001">
      <context>
        <input/>
        <output/>
        <macros/>
      </context>
      <operator activated="true" class="process" compatibility="7.0.001" expanded="true" name="Process">
        <process expanded="true">
          <operator activated="true" class="generate_direct_mailing_data" compatibility="7.0.001" expanded="true" height="68" name="Generate Direct Mailing Data" width="90" x="45" y="85"/>
          <operator activated="true" class="filter_examples" compatibility="7.0.001" expanded="true" height="103" name="Filter Examples" width="90" x="179" y="85">
            <parameter key="parameter_string" value="label = resp.*"/>
            <parameter key="condition_class" value="attribute_value_filter"/>
            <list key="filters_list">
              <parameter key="filters_entry_key" value="label.equals.res\.*"/>
            </list>
          </operator>
          <connect from_op="Generate Direct Mailing Data" from_port="output" to_op="Filter Examples" to_port="example set input"/>
          <connect from_op="Filter Examples" from_port="example set output" to_port="result 1"/>
          <portSpacing port="source_input 1" spacing="0"/>
          <portSpacing port="sink_result 1" spacing="0"/>
          <portSpacing port="sink_result 2" spacing="0"/>
        </process>
      </operator>
    </process>
Sign In or Register to comment.