Split along word into parts with different lengths
Afficher commentaires plus anciens
problem solved
3 commentaires
Does it always start with "NCCINS.AttidudePositionINS1" and only differs by the last part? Or does the relative position always change?
If it is static, then it is just a matter of splitting strings by indexing. Otherwise is becomes a rather complicated regex.
Cedric
le 6 Juin 2014
I guess that it is not always starting with the same string, otherwise you wouldn't have to parse it. We need more examples, as well as a clear description of criteria which define sub parts.
dpb
le 6 Juin 2014
Specifically, what's the rule for breaking down the first set of six letters into the two groups of three if that isn't a consistent string. If it is, then just substring referencing of 1:3 and 4:6 takes care of it.
The rest looks like looking for capitals after a lowercase letter.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Characters and Strings dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!