MATLAB Answers

What does some symbol in regular express mean?

4 views (last 30 days)
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?


Sign in to comment.

Accepted Answer

Rolfe Dlugy-Hegwer
Rolfe Dlugy-Hegwer on 5 Sep 2012
(?<=expr) - Look behind from current position and test if expr is found.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by