Regex: How do I match an empty string?

37 Ansichten (letzte 30 Tage)
Jan Siegmund
Jan Siegmund am 15 Mai 2020
Beantwortet: Jan Siegmund am 15 Mai 2020
Consider the following string:
a = '';
How can I match it using regexp?

Akzeptierte Antwort

Jan Siegmund
Jan Siegmund am 15 Mai 2020
Use
regexp(a,'^$','emptymatch')

Weitere Antworten (0)

Kategorien

Mehr zu Characters and Strings finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by