ExpandRegexSet

버전 1.0.0.0 (1018 Bytes) 작성자: Michael Robbins
Turns an expression like abc[def] into {'abcd', ...
다운로드 수: 2.1K
업데이트 날짜: 2003/9/5

라이선스 없음

EXPANDREGEXSET is a function written for CSSM as an
example and is not well thought out. It turns an expression like abc[def] into {'abcd', ...
'abce','abcf'}

This is similar to REGEXPIOR which can be found in my REGEXTOOLS (regular expression tools) at MATLAB Central.

USAGE
>> ExpandRegexSet('abc[def]ghi[jkl][mno]')'
ans =
Columns 1 through 6
'abcdghijm' 'abcdghijn' 'abcdghijo' 'abcdghikm' 'abcdghikn' 'abcdghiko'
Columns 7 through 12
'abcdghilm' 'abcdghiln' 'abcdghilo' 'abceghijm' 'abceghijn' 'abceghijo'
Columns 13 through 18
'abceghikm' 'abceghikn' 'abceghiko' 'abceghilm' 'abceghiln' 'abceghilo'
Columns 19 through 24
'abcfghijm' 'abcfghijn' 'abcfghijo' 'abcfghikm' 'abcfghikn' 'abcfghiko'
Columns 25 through 27
'abcfghilm' 'abcfghiln' 'abcfghilo'

CAVEAT:
Nested brackets and escaped brackets are not supported.
Only square brackets are supported

IT'S NOT FANCY BUT IT WORKS

인용 양식

Michael Robbins (2024). ExpandRegexSet (https://www.mathworks.com/matlabcentral/fileexchange/3935-expandregexset), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R13
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0