RegExSub Method |
Searches the text for the compiled pattern and replaces it with the specified string. Escapes and backreferences such as $1 and $name are expanded and resolved. By default, only the first instance is replaced, but it can be changed for all instances (global replacement). The region to search within can be specified without modifying where the start and end anchor would be.
Namespace: Godot
public string Sub( string subject, string replacement, bool all = false, int offset = 0, int end = -1 )
[Missing <param name="subject"/> documentation for "M:Godot.RegEx.Sub(System.String,System.String,System.Boolean,System.Int32,System.Int32)"]
[Missing <param name="replacement"/> documentation for "M:Godot.RegEx.Sub(System.String,System.String,System.Boolean,System.Int32,System.Int32)"]
[Missing <param name="all"/> documentation for "M:Godot.RegEx.Sub(System.String,System.String,System.Boolean,System.Int32,System.Int32)"]
[Missing <param name="offset"/> documentation for "M:Godot.RegEx.Sub(System.String,System.String,System.Boolean,System.Int32,System.Int32)"]
[Missing <param name="end"/> documentation for "M:Godot.RegEx.Sub(System.String,System.String,System.Boolean,System.Int32,System.Int32)"]
[Missing <returns> documentation for "M:Godot.RegEx.Sub(System.String,System.String,System.Boolean,System.Int32,System.Int32)"]