Regex: How do I match an empty string?

36 vues (au cours des 30 derniers jours)
Jan Siegmund
Jan Siegmund le 15 Mai 2020
Consider the following string:
a = '';
How can I match it using regexp?

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Characters and Strings dans Help Center et File Exchange

Produits


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by