What will be the regex for this type of string?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
The regular expression should accept string like:V123456_123456_123456.
- String must start with V.
- Then any number of digits.
- _(underscore) character followed by any number of digits.
- Finally an _ character then any number of digits.
0 Kommentare
Antworten (1)
Rik
am 21 Okt. 2022
expr = 'V/d*_/d*_/d*';
Or, if 'any' actually means '1 or more':
expr = 'V/d+_/d+_/d+';
0 Kommentare
Siehe auch
Kategorien
Mehr zu String Parsing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!