Regex: How do I match an empty string?

48 visualizaciones (últimos 30 días)
Jan Siegmund
Jan Siegmund el 15 de Mayo de 2020
Respondida: Jan Siegmund el 15 de Mayo de 2020
Consider the following string:
a = '';
How can I match it using regexp?

Respuesta aceptada

Jan Siegmund
Jan Siegmund el 15 de Mayo de 2020
Use
regexp(a,'^$','emptymatch')

Más respuestas (0)

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by