Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
9
Task/Regular-expressions/Ring/regular-expressions.ring
Normal file
9
Task/Regular-expressions/Ring/regular-expressions.ring
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# Project : Regular expressions
|
||||
|
||||
text = "I am a text"
|
||||
if right(text,4) = "text"
|
||||
see "'" + text +"' ends with 'text'" + nl
|
||||
ok
|
||||
i = substr(text,"am")
|
||||
text = left(text,i - 1) + "was" + substr(text,i + 2)
|
||||
see "replace 'am' with 'was' = " + text + nl
|
||||
Loading…
Add table
Add a link
Reference in a new issue