How to intercept part of text in Yi Language
.Version 2
.Support library spec
.Local variable record, text type, , "0"
.Local variable Temporary variable, text type
Temporary variable = "The weather is good today" + "abcdefg"
Record = Split text (temporary variable, "The weather is good today", )
.If (get the number of array members (record) > 1)
Debug output (record [2])
. Otherwise
Debug output ( "Segmentation failed or there is no text after the weather is good today")
But this will have hidden dangers. For example, there are two "The weather is good today" in your hand.
Using text extraction is the best way. Convenient
Get the left side of the text ()
Get the right side of the text ()
Get the middle of the text ()
The following is the source code: < /p>
.Version 2
.Support library spec
.Local variable record, text type
.Local variable temporary variable, text type< /p>
Temporary variable = "The weather is good today" + "abcdefg"
Record = Get the right side of the text (temporary variable, get the length of the text (temporary variable) - Get the length of the text ("The weather is good today" ”))
Debug output (record)