annotate find_and_replace.xml @ 26:f22a309187a3 draft

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