RegExTools

Regular Expression Tools

You are now following this Submission

REGEXTOOLS ? Regular Expression Tools

I'm creating the RegExTools toolbox with many of the *** little *** functions I've been using.

They are not complete and they are not extensive. I could have programmed them more elegantly. They're just some little tools I made for myself that I thought you'd find useful.

Please let me know if you come up with any improvements or bug reports.

I expect that I'll be updating these items frequently so keep checking for changes:

EXTRACT_TOKEN_AND_REMAINDER
returns target string and remainder given string, start and finish

REGEXBRACKET
extracts bracketed tokens and comments regexp('{one}two {three}','{.*}') thinks you want "{one}two {three}" when you may really want "{one}" and "{three}". If this is what you want RegExBracket is for you!

REGEXPINC
"improved" REGEXPI

REGEXPIOR
combines REGEXPIOR and RegExpIncREGEXPINCIOR

REGEXPINCNUM
uses REGEXPINC and returns a number corresponding to the first token

REGEXPIOR
inclusive and exclusive or: produces combinations of regular expressions for easier and faster processing

REGEXPSTRTOK
STRTOK for regular expressions

VIEWREGEXP
visually see the output of regexp

STRUCT2FLAT
turns a structure into a flat table also produces a file for importing t Excel, Access or any other DB

Cite As

Michael Robbins (2026). RegExTools (https://www.mathworks.com/matlabcentral/fileexchange/2250-regextools), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0