Regex: How do I match an empty string?

조회 수: 36 (최근 30일)
Jan Siegmund
Jan Siegmund 2020년 5월 15일
답변: Jan Siegmund 2020년 5월 15일
Consider the following string:
a = '';
How can I match it using regexp?

채택된 답변

Jan Siegmund
Jan Siegmund 2020년 5월 15일
Use
regexp(a,'^$','emptymatch')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Characters and Strings에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by