フィルターのクリア

What will be the regex for this type of string?

1 回表示 (過去 30 日間)
Meenal
Meenal 2022 年 10 月 21 日
回答済み: Rik 2022 年 10 月 21 日
The regular expression should accept string like:V123456_123456_123456.
  1. String must start with V.
  2. Then any number of digits.
  3. _(underscore) character followed by any number of digits.
  4. Finally an _ character then any number of digits.

回答 (1 件)

Rik
Rik 2022 年 10 月 21 日
expr = 'V/d*_/d*_/d*';
Or, if 'any' actually means '1 or more':
expr = 'V/d+_/d+_/d+';

カテゴリ

Help Center および File ExchangeString Parsing についてさらに検索

製品


リリース

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by