Regular expression

From Bennu Wiki
Revision as of 08:16, 9 March 2012 by 82.74.128.190 (talk) (Created page with 'Regular expressions can be used for a lot of text processing things, like finding matches, replacing texts, splitting and joining strings. The syntax is quite complex, but it pac…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Regular expressions can be used for a lot of text processing things, like finding matches, replacing texts, splitting and joining strings. The syntax is quite complex, but it packs a lot of sophistication in just 4 functions.

Bennu has 4 functions anvailible: Split(), Join(), Regex() and Regex_replace(). They are very usefull in combination with the file and string functions, such as glob(), fgets(), fputs(), find() and Len(). With some creativity you can create text based spreadsheet formats or search and replace texts.

You can find more information about regular expressions here.