Project

General

Profile

$bfind » History » Version 9

Per Amundsen, 09/18/2020 05:56 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$bfind(&binvar, N, M)*
4
5
Searches a &binvar for a matching value.
6
7
_The search is case-insensitive._
8
9
*Parameters*
10
11
&binvar - The &binvar to search.
12
N - The position of the &binvar to start the search.
13 5 Per Amundsen
M - Numeric "ASCII":http://www.asciitable.com/ character(s) or text to search.
14 1 Per Amundsen
15
*Properties*
16
17 4 Per Amundsen
.text - Force a text search if the search text (M) is a number.
18 7 Per Amundsen
.textcs - Search case-sensitive.
19 9 Per Amundsen
.regex - Performs a [[Scripting_Regex|regular expression]] search for the pattern *M*.
20 1 Per Amundsen
21
*Example*
22
23
<pre>
24 6 Per Amundsen
; Finds "test" starting from position 1.
25 1 Per Amundsen
//echo -a $bfind(&test, 1, test)
26
 
27 6 Per Amundsen
; Finds character 32 (a space) from position 5.
28 1 Per Amundsen
//echo -a $bfind(&test, 5, 32)
29
30 6 Per Amundsen
; Finds WAV from position 1.
31 1 Per Amundsen
//echo -a $bfind(&test, 1, 87 65 86)
32
</pre>