What does some symbol in regular express mean?

1 回表示 (過去 30 日間)
tqy
tqy 2012 年 9 月 5 日
コメント済み: Walter Roberson 2015 年 2 月 28 日
x = [1 0.3 -2 0.001 -0.00016, 582398, 3020];
regexp(num2str(x), '(?<=(^|\s+)[\-\.0]*)[1-9](?=\d*\.?\d*)', 'match')
What does these symbol '<' '=' mean?
How this expression work, first do what, then do what?

採用された回答

Rolfe Dlugy-Hegwer
Rolfe Dlugy-Hegwer 2012 年 9 月 5 日
(?<=expr) - Look behind from current position and test if expr is found.
  2 件のコメント
Oleg Komarov
Oleg Komarov 2012 年 9 月 5 日
A small simplification (legit?)
regexp(num2str(x), '(?<=(^|\s+)[\-\.0]*)[1-9](?=[\d\.]*)', 'match')

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by