Effacer les filtres
Effacer les filtres

How to omit the type line in a regexp result

2 vues (au cours des 30 derniers jours)
Yode
Yode le 8 Juil 2017
This is my Matlab command for match those string.
As we see,there is a type mark line between * ans=* and my result line,which will take up my extra line.How to omit it?

Réponse acceptée

Walter Roberson
Walter Roberson le 8 Juil 2017
Some possible ways:
  1. regexp('dcda4adcqq', '(.{2,}).?(??@fliplr($1))', 'match', 'once');
  2. regexp('dcda4adcqq', '(.{2,}).?(??@fliplr($1))', 'match'); disp(ans);
  3. result = regexp('dcda4adcqq', '(.{2,}).?(??@fliplr($1))', 'match'); result{1}
  4. celldisp(regexp('dcda4adcqq', '(.{2,}).?(??@fliplr($1))', 'match'))

Plus de réponses (0)

Catégories

En savoir plus sur 结构体 dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!