comparison regex.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
108 $ - the regex must match to the end of the line of text 108 $ - the regex must match to the end of the line of text
109 109
110 In the replacement pattern, use the special token #{input_name} to insert the input dataset's display name. 110 In the replacement pattern, use the special token #{input_name} to insert the input dataset's display name.
111 The name can be modified by a second find/replace check. Suppose you want to insert the sample id of your dataset, 111 The name can be modified by a second find/replace check. Suppose you want to insert the sample id of your dataset,
112 named **Sample ABC123**, into the dataset itself, which currently contains the lines:: 112 named **Sample ABC123**, into the dataset itself, which currently contains the lines::
113 Data 1 113
114 Data 2 114 Data 1
115 Data 3 115 Data 2
116 Data 3
116 117
117 You can use the following checks:: 118 You can use the following checks::
118 Find Regex: Data
119 Replacement: #{input_name} Data
120 119
121 Find Regex: Sample (\S+) 120 Find Regex: Data
122 Replacement: \1 121 Replacement: #{input_name} Data
122
123 Find Regex: Sample (\S+)
124 Replacement: \1
123 125
124 The result will be:: 126 The result will be::
125 ABC123 Data 1 127
126 ABC123 Data 2 128 ABC123 Data 1
127 ABC123 Data 3 129 ABC123 Data 2
130 ABC123 Data 3
128 131
129 132
130 133
131 Galaxy aggressively escapes input supplied to tools, so if something 134 Galaxy aggressively escapes input supplied to tools, so if something
132 is not working please let us know and we can look into whether this is 135 is not working please let us know and we can look into whether this is