Next: String-still unclassified, Previous: String-printing, Up: String [Index]
Answer a RegexResults object for matching the receiver against the Regex or String object pattern.
Find all the matches of pattern within the receiver and collect them into an OrderedCollection.
Find all the matches of pattern within the receiver and pass the RegexResults objects to aBlock.
Find all the matches of pattern within the receiver and within the given range of indices. Collect them into an OrderedCollection, which is then returned.
Find all the matches of pattern within the receiver and within the given range of indices. For each match, pass the RegexResults object to aBlock.
Answer the receiver, converted to a Regex object.
Returns the substring of the receiver between from and to. Any match of pattern in that part of the string is replaced using aStringOrBlock as follows: if it is a block, a RegexResults object is passed, while if it is a string, %n sequences are replaced with the captured subexpressions of the match (as in #%).
Returns the substring of the receiver between from and to. If pattern has a match in that part of the string, the match is replaced using aStringOrBlock as follows: if it is a block, a RegexResults object is passed, while if it is a string, %n sequences are replaced with the captured subexpressions of the match (as in #%).
Returns the receiver after replacing all the matches of pattern (if any) using aStringOrBlock as follows: if it is a block, a RegexResults object is passed, while if it is a string, %n sequences are replaced with the captured subexpressions of the match (as in #%).
Returns the receiver after replacing the first match of pattern (if any) using aStringOrBlock as follows: if it is a block, a RegexResults object is passed, while if it is a string, %n sequences are replaced with the captured subexpressions of the match (as in #%).
If an occurrence of the regex is present in the receiver, return the Interval corresponding to the leftmost-longest match. Otherwise return nil.
If an occurrence of the regex is present in the receiver, return the Interval corresponding to the leftmost-longest match occurring within the given range of indices. Otherwise return nil.
If an occurrence of the regex is present in the receiver, return the Interval corresponding to the leftmost-longest match occurring within the given indices. Otherwise, evaluate excBlock and return the result.
If an occurrence of the regex is present in the receiver, return the Interval corresponding to the leftmost-longest match. Otherwise, evaluate excBlock and return the result.
If an occurrence of the regex is present in the receiver, return the Interval corresponding to the leftmost-longest match starting after the given index. Otherwise return nil.
If an occurrence of the regex is present in the receiver, return the Interval corresponding to the leftmost-longest match starting after the given index. Otherwise, evaluate excBlock and return the result.
Answer whether the receiver is an exact match for the pattern. This means that the pattern is implicitly anchored at the beginning and the end.
Answer whether the given range of indices is an exact match for the pattern. This means that there is a match starting at from and ending at to (which is not necessarily the longest match starting at from).
Returns count of how many times pattern repeats in the receiver.
Return a count of how many times pattern repeats in the receiver within the given range of index.
Returns count of how many times pattern repeats in the receiver, starting the search at the given index.
Find all the matches of pattern within the receiver and, for each match, pass the RegexResults object to aBlock.
Find all the matches of pattern within the receiver and within the given range of indices. For each match, pass the RegexResults object to aBlock.
Returns the receiver if the pattern has no match in it. Otherwise, any match of pattern in that part of the string is replaced using aStringOrBlock as follows: if it is a block, a RegexResults object is passed, while if it is a string, %n sequences are replaced with the captured subexpressions of the match (as in #%).
Returns the receiver if the pattern has no match in it. If it has a match, it is replaced using aStringOrBlock as follows: if it is a block, a RegexResults object is passed, while if it is a string, %n sequences are replaced with the captured subexpressions of the match (as in #%).
A synonym for #=~. Answer a RegexResults object for matching the receiver against the Regex or String object pattern.
Answer a RegexResults object for matching the receiver against the Regex or String object pattern, restricting the match to the specified range of indices.
Answer a RegexResults object for matching the receiver against the Regex or String object pattern, starting the match at index anIndex.
Split the receiver at every occurrence of pattern. All parts that do not match pattern are separated and stored into an Array of Strings that is returned.
Split the receiver at every occurrence of pattern (considering only the indices between from and to). All parts that do not match pattern are separated and stored into an Array of Strings that is returned.
Answer whether the receiver matched against the Regex or String object pattern.
Next: String-still unclassified, Previous: String-printing, Up: String [Index]