Regex Tools

Tags: Calc Extensions

last edited: 2023-01-24


This extension aims to provide Calc functions using Regex.

regex tools 0ed2a3b5 7b6e 4c86 ba80 b0afffc54066


For the moment, there is only one function, regextract, that extract caracters from a string according to a regex pattern. It contains 3 parameters: the string to search into, the pattern in which each group to be extracted is put into brackets, and the number of the group to be displayed. I.e: regextract("12 abc 12";"(\d+)\s(\D+)";1) = 12 and regextract("12 abc 12";"(\d+)\s(\D+)";2) = abc

Special thanks to Lorenzo Carbonell who helped me debugging this extension!


Release List

Release: 0.1.0 – First publication of this extension.

Compatibility: 5.4
Operating Systems: Linux, Windows
License: GPL


Post your review

You cannot post reviews until you have logged in. Login Here.


  • Bastiaan Wakkie Jun 10, 2021, 8:56 AM (22 months ago)

    Perfect tool that does what it supposed to do. For me way better than the standard regex capability with in calc.
    Would be great if somehow the regex is showing directly -while typing- what it is selecting and replacing to not lose time figuring out a problem in the regex.

RSS feed for reviews on this page | RSS feed for all reviews