Pages: [1]
  Print  
Author Topic: returning RegEx in Filter Examples  (Read 70 times)
sgenzer
Full Member
***
Posts: 120


WWW
« on: March 18, 2016, 02:08:22 PM »

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
Logged

Scott Genzer
Genzer Consulting
JEdward
Sr. Member
****
Posts: 348


WWW
« Reply #1 on: March 20, 2016, 07:22:29 PM »

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:

Code:
<?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>
Logged

--
RapidMiner China
www.rapidminerchina.com
Pages: [1]
  Print  
 
Jump to: