comparison replace_text_in_line.xml @ 25:ab83aa685821 draft default tip

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 28d2fcf2649b999762fbd94bd648485b916f2f0d
author bgruening
date Sat, 17 Jan 2026 00:57:38 +0000
parents 3dc70b59608c
children
comparison
equal deleted inserted replaced
24:c41d78ae5fee 25:ab83aa685821
3 <macros> 3 <macros>
4 <import>macros.xml</import> 4 <import>macros.xml</import>
5 </macros> 5 </macros>
6 <expand macro="creator"/> 6 <expand macro="creator"/>
7 <requirements> 7 <requirements>
8 <requirement type="package" version="4.8">sed</requirement> 8 <requirement type="package" version="4.9">sed</requirement>
9 </requirements> 9 </requirements>
10 <version_command>sed --version | head -n 1</version_command> 10 <version_command>sed --version | head -n 1</version_command>
11 <command> 11 <command>
12 <![CDATA[ 12 <![CDATA[
13 sed 13 sed
24 24
25 </command> 25 </command>
26 <inputs> 26 <inputs>
27 <param format="txt" name="infile" type="data" label="File to process" /> 27 <param format="txt" name="infile" type="data" label="File to process" />
28 <repeat name="replacements" title="Replacement" min="1"> 28 <repeat name="replacements" title="Replacement" min="1">
29 <param name="find_pattern" type="text" size="20" label="Find pattern" help="Use simple text, or a valid regular expression (without backslashes // ) " > 29 <param name="find_pattern" type="text" label="Find pattern" help="Use simple text, or a valid regular expression">
30 <sanitizer> 30 <sanitizer>
31 <valid initial="string.printable"> 31 <valid initial="string.printable">
32 <remove value="&#39;"/> 32 <remove value="&#39;"/>
33 <remove value="/"/> 33 <remove value="/"/>
34 </valid> 34 </valid>
36 <add source="&#39;" target="&#39;&quot;&#39;&quot;&#39;" /> 36 <add source="&#39;" target="&#39;&quot;&#39;&quot;&#39;" />
37 <add source="/" target="\/"/> 37 <add source="/" target="\/"/>
38 </mapping> 38 </mapping>
39 </sanitizer> 39 </sanitizer>
40 </param> 40 </param>
41 <param name="replace_pattern" type="text" size="20" label="Replace with:" help="Use simple text, or &amp; (ampersand) and \\1 \\2 \\3 to refer to matched text. See examples below." > 41 <param name="replace_pattern" type="text" label="Replace with:" help="Use simple text, or &amp; (ampersand) and \1, \2, \3, etc. to refer to matched text. See examples below." >
42 <sanitizer> 42 <sanitizer>
43 <valid initial="string.printable"> 43 <valid initial="string.printable">
44 <remove value="&#39;"/> 44 <remove value="&#39;"/>
45 <remove value="/"/> 45 <remove value="/"/>
46 </valid> 46 </valid>
48 <add source="&#39;" target="&#39;&quot;&#39;&quot;&#39;" /> 48 <add source="&#39;" target="&#39;&quot;&#39;&quot;&#39;" />
49 <add source="/" target="\/"/> 49 <add source="/" target="\/"/>
50 </mapping> 50 </mapping>
51 </sanitizer> 51 </sanitizer>
52 </param> 52 </param>
53 <param name="sed_options" type="text" size="20" optional="true" label="Additional sed commands before replacement" help="Provide additional sed commands before the replacement (e.g., ':a;N;$!ba;')." > 53 <param name="sed_options" type="text" optional="true" label="Additional sed commands before replacement" help="Provide additional sed commands before the replacement (e.g., ':a;N;$!ba;')." >
54 <sanitizer> 54 <sanitizer>
55 <valid initial="string.printable"> 55 <valid initial="string.printable">
56 <remove value="&#39;"/> <!-- Removes single quotes --> 56 <remove value="&#39;"/> <!-- Removes single quotes -->
57 <remove value="/"/> <!-- Removes slashes --> 57 <remove value="/"/> <!-- Removes slashes -->
58 </valid> 58 </valid>