7 lines
139 B
Text
7 lines
139 B
Text
str = "I am a string"
|
|
|
|
true? str.match(/string$/)
|
|
{ p "Ends with 'string'" }
|
|
|
|
false? str.match(/^You/)
|
|
{ p "Does not start with 'You'" }
|