What does some symbol in regular express mean?

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?

 Respuesta aceptada

Rolfe Dlugy-Hegwer
Rolfe Dlugy-Hegwer el 5 de Sept. de 2012

0 votos

(?<=expr) - Look behind from current position and test if expr is found.

2 comentarios

A small simplification (legit?)
regexp(num2str(x), '(?<=(^|\s+)[\-\.0]*)[1-9](?=[\d\.]*)', 'match')

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Characters and Strings en Centro de ayuda y File Exchange.

Preguntada:

tqy
el 5 de Sept. de 2012

Comentada:

el 28 de Feb. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by