Split string into string list by regular expression - complicated regex
Created: 2010-10-29 15:25:14
Last updated: 2010-10-29 15:32:11
The split string into string list by regular expression takes the string 'boo:and:foo' and using the specified regular expression 'o.*n' splits it into the list ['b','d:foo']
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (1)
Titles (4)
Split string into string list by regular expression - character regex |
Split string into string list by regular expression - character regex |
Split string into string list by regular expression - character regex |
Split string into string list by regular expression - complicated regex |
Descriptions (3)
The split string into string list by regular expression takes the string 'boo:and:foo' and using the specified regular expression 'o.*n' splits it into the list ['b','d:f'] |
The split string into string list by regular expression takes the string 'boo:and:foo' and using the specified regular expression 'o.*n' splits it into the list ['b','d:foo'] |
The split string into string list by regular expression takes the string 'boo:and:foo' and using the specified regular expression 'o' splits it into the list ['b','',':and:f'] |
Dependencies (0)
Processors (3)
Name |
Type |
Description |
Split_string_into_string_list_by_regular_expression |
localworker |
ScriptList split = new ArrayList();
if (!string.equals("")) {
String regexString = ",";
if (regex != void) {
regexString = regex;
}
String[] result = string.split(regexString);
for (int i = 0; i < result.length; i++) {
split.add(result[i]);
}
}
|
string_to_split |
stringconstant |
Valueboo:and:foo |
o_several_letters_then_n |
stringconstant |
Valueo.*n |
Outputs (1)
Name |
Description |
split_string |
|
Datalinks (3)
Source |
Sink |
string_to_split:value |
Split_string_into_string_list_by_regular_expression:string |
o_several_letters_then_n:value |
Split_string_into_string_list_by_regular_expression:regex |
Split_string_into_string_list_by_regular_expression:split |
split_string |
Uploader
License
All versions of this Workflow are
licensed under:
Version 2 (latest)
(of 2)
Credits (0)
(People/Groups)
None
Attributions (0)
(Workflows/Files)
None
Shared with Groups (1)
Featured In Packs (0)
None
Log in to add to one of your Packs
Attributed By (0)
(Workflows/Files)
None
Favourited By (0)
No one
Statistics
Other workflows that use similar services
(0)
There are no workflows in myExperiment that use similar services to this Workflow.
Comments (0)
No comments yet
Log in to make a comment