{"title":"String Manipulation (Variable)","nodeType":"Manipulator","id":"*FWPUBvMqqD1vL-Pe","factoryName":"org.knime.base.node.preproc.stringmanipulation.variable.StringManipulationVariableNodeFactory","factoryId":"org.knime.base.node.preproc.stringmanipulation.variable.StringManipulationVariableNodeFactory","path":["Workflow Control","Variables"],"owner":"knime","ownerAccountId":"account:team:b5f0848f-496d-4e6a-b869-fa3532248db7","description":"<p>This node is superseded by the &#34;Variable Expression&#34; node. We advise to use the &#34;Variable Expression&#34; node instead of this node.</p>\n            \t\t\t\n            <p>Manipulates or defines values of variables like search and replace, capitalize or remove leading and trailing white spaces.</p>\n            \t\t\t\n            <b>Examples:</b>\n            \t\t\t\n            <p>To remove leading and trailing blanks from a variable with name <i>c0</i> you would use the expression:\n <br />\n <i>strip($${Sc0}$$)</i></p>\n            \t\t\t\n            <p>If you have your customer names in flow variable <i>names</i> with titles Mr and Mister and you want to normalize the data so that only Mr is used you could use the expression:\n <br />\n <i>replace($${Snames}$$, &#34;Mister&#34;, &#34;Mr&#34;)</i>\n <br />\n or you could combine it to\n <br />\n <i>replace(replace($${Snames}$$, &#34;Mister&#34;, &#34;Mr&#34;), &#34;Miss&#34;, &#34;Ms&#34;)</i></p>\n            \t\t\t\n            <p>Or if you want to have the number of characters of the strings in a variable with name <i>text</i> :\n <br />\n <i>length($${Stext}$$)</i></p>\n            \t\t\t\n            <p>Note that strings which are part of the expression and are not from the input data (or the result of another wrapped function call) need to be enclosed in double quotes (&#39;&#34;&#39;). Additionally, if the string contains a quote character, it must be escaped using a backslash character (&#39;\\&#34;&#39;). Finally, other special characters such as single quotes and backslashes need to be escaped using a backslash. For instance, a single backslash in a string is written as two consecutive backslash characters; the first one acts as the escape character for the second.</p>\n            \t\t\n        \n        ","shortDescription":"Manipulates or defines values of variables like search and replace,\n\t\tcapitalize or remove leading and trailing white spaces.","keywords":[],"deprecated":false,"streamable":false,"tags":["Workflow Control","Variables"],"icon":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAScwAAEnMBjCK5BwAAABl0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC4xMkMEa+wAAADcSURBVDhPldBNCsIwEAXganVX3AoK3Ykrt97DAwgBwa3nEDyCF9AruBMEdxURz+EN4nuBgZnxJxr40nTSeU1bxBiNuq4j5WrC3IQQ0sO6JljnvsY6B+dEArDuylslMBdQcqECXk7yNUCafIDIBqQZp9ABHNKYDRj0h20udACvIhfQ0kUJ4Kb2McAX9Vt1888B/8gG8AFZY6zhAD3gP9vCzTR4LmAKd5jBGBpYmQbPBVSwgw0s4Qoj0+C5gA4s4ARH2ENlGjwXwDGBMzxgDqVp8N4E8AfyEy6AsKJ4AvmEWYNxHkDGAAAAAElFTkSuQmCC","views":[],"inPorts":[{"objectClass":"org.knime.core.node.port.flowvariable.FlowVariablePortObject","color":"ff4b4b","dataType":"Flow Variable","optional":true,"name":"Input variables (optional)","description":"Optional input port for flow variables."}],"outPorts":[{"objectClass":"org.knime.core.node.port.flowvariable.FlowVariablePortObject","color":"ff4b4b","dataType":"Flow Variable","optional":false,"name":"Appended variables","description":"Input variables with an additional calculated variable or one variable replaced."}],"dynInPorts":[],"dynOutPorts":[],"additionalSiteInformation":{"url":"https://update.knime.com/analytics-platform/5.12","trusted":true,"enabledByDefault":true,"name":"KNIME Analytics Platform 5.12 Update Site","version":"5.12.0"},"dialog":[{"fields":[{"name":"Flow Variable List","description":"The list contains the flow variables that are currently available at the node input. Double clicking any of the entries will insert the respective identifier at the current cursor position (replacing the selection, if any).","optional":false},{"name":"Function","description":"Select a single function to display its description. A double click will insert the function in the expression editor. It will replace your current selection or simply insert at the current caret position. Select a category to narrow down the list of displayed functions.","optional":false},{"name":"Expression","description":"The place for your business logic. You can hit <i>ctrl&#43;space</i> to get an auto completion box.","optional":false},{"name":"Replace/Append","description":"Specify here if you want the result to be put into a separate or existing flow variable. Note that the flow variable only can be replaced, if the type of it does not change (otherwise there will a new flow variable be appended, with same name, but different type).","optional":false},{"name":"Syntax check on close","description":"If unchecked the dialog can be closed even when the expression has syntax errors.","optional":false}]}],"links":[{"text":"KNIME Documentation: Creation and usage of flow variables in a KNIME workflow","url":"https://docs.knime.com/ap/latest/analytics_platform_flow_control_guide/#flow-variables"}],"kudos":[],"kudosCount":0,"bundleInformation":{"bundleVersion":"5.12.0.v202606171353","bundleName":"KNIME Java Snippet Nodes","bundleSymbolicName":"org.knime.jsnippets","bundleVendor":"KNIME AG, Zurich, Switzerland","featureSymbolicName":"org.knime.features.javasnippet","featureName":"KNIME Javasnippet","featureVersion":"5.12.0.v202606171353","featureVendor":"KNIME AG, Zurich, Switzerland","extensionId":"*hXfYFyb7ZzM0xseG"},"frequentSuccessors":[{"id":"*FWPUBvMqqD1vL-Pe","factoryName":"org.knime.base.node.preproc.stringmanipulation.variable.StringManipulationVariableNodeFactory","probability":0.08221343873517786},{"id":"*Oy714gpoifm4PiOZ","factoryName":"org.knime.base.node.io.csvwriter.CSVWriterNodeFactory","probability":0.05454545454545454},{"id":"*iwDu8kKWK5YB0F_q","factoryName":"org.knime.base.node.util.mergevariables.MergeVariablesNodeFactory","probability":0.04031620553359684},{"id":"*JiJhJpgkWWuOfG2s","factoryName":"org.knime.ext.poi2.node.write2.XLSWriter2NodeFactory","probability":0.03399209486166008},{"id":"*Y_8cAJatl5UQNkJy","factoryName":"org.knime.base.node.flowvariable.variabletotablerow2.VariableToTable2NodeFactory","probability":0.03241106719367589},{"id":"*_XB1nUphPEUorP0T","factoryName":"org.knime.base.node.flowvariable.createfilename.CreateFilenameNodeFactory","probability":0.0308300395256917},{"id":"*PHWv6FsABEjrSc76","factoryName":"org.knime.base.node.preproc.rename.RenameNodeFactory","probability":0.02924901185770751},{"id":"*jd2U-FYTI8jCbQls","factoryName":"org.knime.base.node.preproc.filter.row.RowFilterNodeFactory","probability":0.028458498023715414},{"id":"*fK0j1K1mcusekRy2","factoryName":"org.knime.base.node.io.database.DBReaderNodeFactory","probability":0.02608695652173913},{"id":"*GW-Yge4qOcLjqrJV","factoryName":"org.knime.ext.poi2.node.write2.XLSAppenderNodeFactory","probability":0.023715415019762844}]}
