Regex: How do I match an empty string?

36 visualizzazioni (ultimi 30 giorni)
Consider the following string:
a = '';
How can I match it using regexp?

Risposta accettata

Jan Siegmund
Jan Siegmund il 15 Mag 2020
Use
regexp(a,'^$','emptymatch')

Più risposte (0)

Categorie

Scopri di più su Characters and Strings in Help Center e File Exchange

Prodotti


Release

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by