[2] |
|
|||
Returns | newStr | |||
strBgn | Beginning of string to search for | |||
strEnd | End of string to search for | |||
newStr | String to replace selection with. Default is <empty> | |||
Description |
Replaces all substrings of strX starting with strBgn and ending with strEnd with the new string newStr sRepSel: case sensitive. iRepSel: case insensitive. |
|||
Examples | put _s("abcd ab123cd").iRepSel("b", "c", "*") -- a*d a*d |
|||
Notes |
[3] |
|
|||
Returns | newStr | |||
str | Target substring | |||
Description | Replaces a sequence of substrings (e.g. "bb") with a single substring ("b") | |||
Examples | put _s("aA , bB").iMergeSeqOf("b") -- aA , b put _s("- abcABC -").iMergeSeqOf("abc") -- - abc - |
|||
Notes |
[4] |
|
|||
Returns | newStr | |||
str | String containing target characters. Default = white space characters | |||
Description | Removes all lines containing only the type of characters of str. If str is not specified, the default value of 'white spaces' will be used, filtering out all blank lines. | |||
Examples | put _s("a"&return&return&"b").sStripLinesOf() -- a b put _s("a"&return&"cd"&return&"b").sStripLinesOf("dc") -- a b |
|||
Notes |