annotate find_and_replace.xml @ 21:86755160afbf draft default tip

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit c2b1677d1c94433f777c2dc28ac8eec0a99cc6a7
author bgruening
date Fri, 16 Aug 2024 10:41:54 +0000
parents 12615d397df7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19
12615d397df7 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents: 18
diff changeset
1 <tool id="tp_find_and_replace" name="Replace" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
0
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
2 <description>parts of text</description>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
3 <macros>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
4 <import>macros.xml</import>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
5 </macros>
19
12615d397df7 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents: 18
diff changeset
6 <expand macro="creator"/>
5
20344ce0c811 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b9d202134c3c6d0e5c398c3ae75e410067fcfc52
bgruening
parents: 3
diff changeset
7 <requirements>
19
12615d397df7 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 70980e329cd9fa78e74bf14a76fd4ded9bd2b91f
bgruening
parents: 18
diff changeset
8 <requirement type="package" version="5.32">perl</requirement>
5
20344ce0c811 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b9d202134c3c6d0e5c398c3ae75e410067fcfc52
bgruening
parents: 3
diff changeset
9 </requirements>
20344ce0c811 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b9d202134c3c6d0e5c398c3ae75e410067fcfc52
bgruening
parents: 3
diff changeset
10 <command>
0
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
11 <![CDATA[
18
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
12 #for $i, $el in enumerate($find_and_replace)
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
13 #if $i == (len($find_and_replace) - 1)
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
14 #set $join = ""
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
15 #else
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
16 #set $join = "|"
0
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
17 #end if
18
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
18 perl '$__tool_directory__/find_and_replace'
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
19 #if $el.searchwhere.searchwhere_select == "column":
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
20 -c $el.searchwhere.column
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
21 #end if
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
22 #if $i == (len($find_and_replace) - 1)
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
23 -o '$outfile'
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
24 #end if
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
25 $el.global
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
26 $el.caseinsensitive
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
27 $el.wholewords
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
28 $el.skip_first_line
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
29 $el.is_regex
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
30 '$el.find_pattern'
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
31 '$el.replace_pattern'
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
32 #if $i == 0
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
33 '$infile'
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
34 #end if
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
35 $join
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
36 #end for
0
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
37 ]]>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
38 </command>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
39 <inputs>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
40 <param name="infile" format="txt" type="data" label="File to process" />
18
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
41 <repeat name="find_and_replace" title="Find and Replace" min="1">
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
42 <param name="find_pattern" type="text" label="Find pattern" help="Use simple text, or a valid regular expression (without backslashes // ) " >
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
43 <sanitizer>
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
44 <valid initial="string.printable">
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
45 <remove value="&apos;"/>
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
46 </valid>
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
47 </sanitizer>
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
48 </param>
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
49 <param name="replace_pattern" type="text" label="Replace with"
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
50 help="Use simple text, or $&amp; (dollar-ampersand) and $1 $2 $3 to refer to matched text. See examples below." >
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
51 <sanitizer>
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
52 <valid initial="string.printable">
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
53 <remove value="&apos;"/>
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
54 </valid>
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
55 </sanitizer>
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
56 </param>
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
57 <param name="is_regex" type="boolean" checked="false" truevalue="-r" falsevalue=""
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
58 label="Find-Pattern is a regular expression" help="see help section for details." />
0
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
59
18
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
60 <param name="global" type="boolean" checked="false" truevalue="-g" falsevalue=""
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
61 label="Replace all occurences of the pattern" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
62
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
63 <param name="caseinsensitive" type="boolean" checked="false" truevalue="-i" falsevalue=""
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
64 label="Case-Insensitive search" help="" />
13
0a8c6b61f0f4 planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 4f79443517baf378fbfe1f81be361d97f2938601
bgruening
parents: 7
diff changeset
65
18
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
66 <param name="wholewords" type="boolean" checked="false" truevalue="-w" falsevalue=""
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
67 label="Find whole-words" help="ignore partial matches (e.g. 'apple' will not match 'snapple')" />
0
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
68
18
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
69 <param name="skip_first_line" type="boolean" checked="false" truevalue="-s" falsevalue=""
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
70 label="Ignore first line" help="Select this option if the first line contains column headers. Text in the line will not be replaced. " />
0
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
71
18
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
72 <conditional name="searchwhere">
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
73 <param name="searchwhere_select" type="select" label="Find and Replace text in">
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
74 <option value="line" selected="true">entire line</option>
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
75 <option value="column">specific column</option>
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
76 </param>
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
77 <when value="line" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
78 <when value="column">
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
79 <param name="column" label="in column" type="data_column" data_ref="infile" accept_default="true" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
80 </when>
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
81 </conditional>
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
82 </repeat>
0
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
83 </inputs>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
84 <outputs>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
85 <data format_source="infile" name="outfile" metadata_source="infile" />
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
86 </outputs>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
87 <tests>
18
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
88 <test expect_num_outputs="1">
0
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
89 <param name="infile" value="find_and_replace1.txt" />
18
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
90 <repeat name="find_and_replace">
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
91 <param name="find_pattern" value="day" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
92 <param name="replace_pattern" value="great day" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
93 <param name="is_regex" value="False" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
94 <param name="global" value="true" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
95 <param name="caseinsensitive" value="False" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
96 <param name="wholewords" value="True" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
97 </repeat>
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
98 <output name="outfile" file="find_and_replace_results1.txt" />
0
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
99 </test>
14
fb4ff3c42cd3 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 09b22cceacb34dd4c6c1b42890f93232df128208"
bgruening
parents: 13
diff changeset
100 <!-- test that columns are split by tab not space. input has no tab loads of spaces
fb4ff3c42cd3 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 09b22cceacb34dd4c6c1b42890f93232df128208"
bgruening
parents: 13
diff changeset
101 .. therefore the ftype needs to be set.
fb4ff3c42cd3 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 09b22cceacb34dd4c6c1b42890f93232df128208"
bgruening
parents: 13
diff changeset
102 result should be the same as in test 1 which works on whole line -->
18
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
103 <test expect_num_outputs="1">
14
fb4ff3c42cd3 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 09b22cceacb34dd4c6c1b42890f93232df128208"
bgruening
parents: 13
diff changeset
104 <param name="infile" value="find_and_replace1.txt" ftype="tabular" />
18
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
105 <repeat name="find_and_replace">
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
106 <param name="find_pattern" value="day" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
107 <param name="replace_pattern" value="great day" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
108 <param name="is_regex" value="False" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
109 <param name="global" value="true" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
110 <param name="caseinsensitive" value="False" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
111 <param name="wholewords" value="True" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
112 <conditional name="searchwhere">
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
113 <param name="searchwhere_select" value="column"/>
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
114 <param name="column" value="1" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
115 </conditional>
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
116 </repeat>
14
fb4ff3c42cd3 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 09b22cceacb34dd4c6c1b42890f93232df128208"
bgruening
parents: 13
diff changeset
117 <output name="outfile" file="find_and_replace_results1.txt" />
fb4ff3c42cd3 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 09b22cceacb34dd4c6c1b42890f93232df128208"
bgruening
parents: 13
diff changeset
118 </test>
18
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
119 <test expect_num_outputs="1">
0
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
120 <param name="infile" value="find_and_replace2.txt" />
18
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
121 <repeat name="find_and_replace">
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
122 <param name="find_pattern" value="^chr" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
123 <param name="replace_pattern" value="" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
124 <param name="is_regex" value="True" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
125 <param name="caseinsensitive" value="False" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
126 <param name="wholewords" value="False" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
127 <conditional name="searchwhere">
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
128 <param name="searchwhere_select" value="column" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
129 <param name="column" value="3" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
130 </conditional>
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
131 </repeat>
0
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
132 <output name="outfile" file="find_and_replace_results2.txt" />
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
133 </test>
18
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
134 <test expect_num_outputs="1">
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
135 <param name="infile" value="find_and_replace1.txt" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
136 <repeat name="find_and_replace">
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
137 <param name="find_pattern" value="day" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
138 <param name="replace_pattern" value="great day" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
139 <param name="is_regex" value="False" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
140 <param name="global" value="true" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
141 <param name="caseinsensitive" value="False" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
142 <param name="wholewords" value="True" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
143 </repeat>
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
144 <param name="infile" value="find_and_replace1.txt" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
145 <repeat name="find_and_replace">
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
146 <param name="find_pattern" value="great" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
147 <param name="replace_pattern" value="best" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
148 <param name="is_regex" value="False" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
149 <param name="global" value="False" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
150 <param name="caseinsensitive" value="False" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
151 <param name="wholewords" value="True" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
152 </repeat>
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
153 <output name="outfile" file="find_and_replace_results3.txt" />
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
154 </test>
0
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
155 </tests>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
156 <help>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
157 <![CDATA[
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
158 **What it does**
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
159
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
160 This tool finds $ replaces text in an input dataset.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
161
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
162 .. class:: infomark
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
163
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
164 The **pattern to find** can be a simple text string, or a perl **regular expression** string (depending on *pattern is a regex* check-box).
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
165
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
166 .. class:: infomark
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
167
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
168 When using regular expressions, the **replace pattern** can contain back-references ( e.g. \\1 )
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
169
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
170 .. class:: infomark
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
171
18
d698c222f354 "planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit 378e99cde623698fb44ee7ac9873f455fb51fdbc"
bgruening
parents: 14
diff changeset
172 This tool uses `Perl regular expression <https://perldoc.perl.org/perlre>`_ syntax.
0
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
173
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
174 -----
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
175
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
176 **Examples of *regular-expression* Find Patterns**
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
177
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
178 - **HELLO** The word 'HELLO' (case sensitive).
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
179 - **AG.T** The letters A,G followed by any single character, followed by the letter T.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
180 - **A{4,}** Four or more consecutive A's.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
181 - **chr2[012]\\t** The words 'chr20' or 'chr21' or 'chr22' followed by a tab character.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
182 - **hsa-mir-([^ ]+)** The text 'hsa-mir-' followed by one-or-more non-space characters. When using parenthesis, the matched content of the parenthesis can be accessed with **\1** in the **replace** pattern.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
183
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
184
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
185 **Examples of Replace Patterns**
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
186
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
187 - **WORLD** The word 'WORLD' will be placed whereever the find pattern was found.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
188 - **FOO-$&-BAR** Each time the find pattern is found, it will be surrounded with 'FOO-' at the begining and '-BAR' at the end. **$&** (dollar-ampersand) represents the matched find pattern.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
189 - **$1** The text which matched the first parenthesis in the Find Pattern.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
190
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
191
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
192 -----
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
193
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
194 **Example 1**
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
195
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
196 **Find Pattern:** HELLO
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
197 **Replace Pattern:** WORLD
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
198 **Regular Expression:** no
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
199 **Replace what:** entire line
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
200
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
201 Every time the word HELLO is found, it will be replaced with the word WORLD.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
202
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
203 -----
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
204
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
205 **Example 2**
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
206
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
207 **Find Pattern:** ^chr
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
208 **Replace Pattern:** (empty)
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
209 **Regular Expression:** yes
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
210 **Replace what:** column 11
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
211
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
212 If column 11 (of every line) begins with ther letters 'chr', they will be removed. Effectively, it'll turn "chr4" into "4" and "chrXHet" into "XHet"
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
213
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
214
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
215 -----
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
216
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
217 **Perl's Regular Expression Syntax**
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
218
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
219 The Find & Replace tool searches the data for lines containing or not containing a match to the given pattern. A Regular Expression is a pattern descibing a certain amount of text.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
220
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
221 - **( ) { } [ ] . * ? + \\ ^ $** are all special characters. **\\** can be used to "escape" a special character, allowing that special character to be searched for.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
222 - **^** matches the beginning of a string(but not an internal line).
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
223 - **(** .. **)** groups a particular pattern.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
224 - **{** n or n, or n,m **}** specifies an expected number of repetitions of the preceding pattern.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
225
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
226 - **{n}** The preceding item is matched exactly n times.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
227 - **{n,}** The preceding item ismatched n or more times.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
228 - **{n,m}** The preceding item is matched at least n times but not more than m times.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
229
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
230 - **[** ... **]** creates a character class. Within the brackets, single characters can be placed. A dash (-) may be used to indicate a range such as **a-z**.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
231 - **.** Matches any single character except a newline.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
232 - ***** The preceding item will be matched zero or more times.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
233 - **?** The preceding item is optional and matched at most once.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
234 - **+** The preceding item will be matched one or more times.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
235 - **^** has two meaning:
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
236 - matches the beginning of a line or string.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
237 - indicates negation in a character class. For example, [^...] matches every character except the ones inside brackets.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
238 - **$** matches the end of a line or string.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
239 - **\\|** Separates alternate possibilities.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
240 - **\\d** matches a single digit
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
241 - **\\w** matches a single letter or digit or an underscore.
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
242 - **\\s** matches a single white-space (space or tabs).
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
243
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
244 ]]>
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
245 </help>
6
60edf2f8c28f planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/text_processing/text_processing commit b'e6ee273f75fff61d1e419283fa8088528cf59470\n'
bgruening
parents: 5
diff changeset
246 <expand macro="citations" />
0
5314e5d6f040 Imported from capsule None
bgruening
parents:
diff changeset
247 </tool>