Mercurial > repos > galaxyp > regex_find_replace
comparison regex_tabular.xml @ 1:209b7c5ee9d7 draft
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/regex_find_replace commit 7283e44acd11cd11400a191d3b766885919956b4
author | galaxyp |
---|---|
date | Thu, 19 Jan 2017 11:26:15 -0500 |
parents | 60d04307b027 |
children | 538933d9fccc |
comparison
equal
deleted
inserted
replaced
0:60d04307b027 | 1:209b7c5ee9d7 |
---|---|
110 | 110 |
111 | 111 |
112 In the replacement pattern, use the special token #{input_name} to insert the input dataset's display name. | 112 In the replacement pattern, use the special token #{input_name} to insert the input dataset's display name. |
113 The name can be modified by a second find/replace check. Suppose you want to insert the sample id of your dataset, | 113 The name can be modified by a second find/replace check. Suppose you want to insert the sample id of your dataset, |
114 named **Sample ABC123**, into the dataset itself, which currently contains the lines:: | 114 named **Sample ABC123**, into the dataset itself, which currently contains the lines:: |
115 Data 1 | 115 |
116 Data 2 | 116 Data 1 |
117 Data 3 | 117 Data 2 |
118 Data 3 | |
118 | 119 |
119 You can use the following checks:: | 120 You can use the following checks:: |
120 Find Regex: Data | |
121 Replacement: #{input_name} Data | |
122 | 121 |
123 Find Regex: Sample (\S+) | 122 Find Regex: Data |
124 Replacement: \1 | 123 Replacement: #{input_name} Data |
124 | |
125 Find Regex: Sample (\S+) | |
126 Replacement: \1 | |
125 | 127 |
126 The result will be:: | 128 The result will be:: |
127 ABC123 Data 1 | 129 |
128 ABC123 Data 2 | 130 ABC123 Data 1 |
129 ABC123 Data 3 | 131 ABC123 Data 2 |
132 ABC123 Data 3 | |
130 | 133 |
131 | 134 |
132 | 135 |
133 Galaxy aggressively escapes input supplied to tools, so if something | 136 Galaxy aggressively escapes input supplied to tools, so if something |
134 is not working please let us know and we can look into whether this is | 137 is not working please let us know and we can look into whether this is |