Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Using regexp to identify matches

1 vue (au cours des 30 derniers jours)
GEORGIOS BEKAS
GEORGIOS BEKAS le 26 Jan 2018
Clôturé : MATLAB Answer Bot le 20 Août 2021
I am trying to identify matches using the command regexp. I am trying to isolate either the first subset of a string (e.g. 4002), or expressions inside the parentheses.
s = '4002-247-8102, (2085) 141-1031, 317-535-4310'
splitStr = regexp(s,'[0-9]-\d';'([0-9])\d','match')

Réponses (0)

Cette question est clôturée.

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by