Skip to content

Latest commit

 

History

History
34 lines (28 loc) · 608 Bytes

regex.md

File metadata and controls

34 lines (28 loc) · 608 Bytes

Regular Expression (PCRE2 RegEx)

RegexMatch(<input>, <regex>)

Get all matches in an array from the specified input string and regex.

RegexMatch("hello123world456", "\\d+");
["123", "456"]

RegexSplit(<input>, <regex>)

Get all splited string in an array from the specified input string and regex.

RegexSplit("hello123world456", "\\d+");
["hello", "world"]

RegexReplace(<input>, <replace>, <regex>)

Replace all matches with a specific string.

RegexReplace("123hello456world789", "_", "\\d+");
_hello_world_