RegExTools

Regular Expression Tools
2.7K Downloads
Updated 28 Aug 2002

No License

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 (2024). RegExTools (https://www.mathworks.com/matlabcentral/fileexchange/2250-regextools), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Characters and Strings in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0