Regex: How do I match an empty string?

42 ビュー (過去 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 Center および File ExchangeCharacters and Strings についてさらに検索

タグ

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by