File: replacetest.kbs

package info (click to toggle)
basic256 0.9.6.69a-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 26,304 kB
  • sloc: cpp: 7,778; yacc: 926; lex: 575; sh: 21; makefile: 7
file content (14 lines) | stat: -rw-r--r-- 445 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# replacetest.jbs 2011-01-05 j.m.reneau
# for version 0.9.6.56

a$ = "We all live in a yellow submarine, yellow submarine, yellow, submarine."

print a$
print "Change yellow to blue."
print Replace(a$,"yellow","blue")
print "Change we to Aliens."
print Replace(a$,"we","Aliens")
print "Change we (case insensitive) to Beatles."
print Replace(a$, "we", "Beatles", true)
print "Change regex y.*, to regular."
print Replacex(a$, "y.*,", "regular")