Regular expression does not detect first entity

0

This expression: (?<=.*"")\s is not detecting the first space it should detect:

<object name="Arrow" id="40" price="$400" description="Uma flecha comum.">

The correct would be to detect the following:

 <object name="Arrow" id="40" price="$400" description="Uma flecha comum.">
        ^            ^       ^            ^

But you're detecting this:

 <object name="Arrow" id="40" price="$400" description="Uma flecha comum.">
                     ^       ^            ^

Does not detect what is between "object name" .... Where is the error?

    
asked by anonymous 20.09.2015 / 03:30

1 answer

2

This is happening, I split the quotes after the. *

(?<=.*)\s

However you will still have to work on this regex, as this will capture the spaces within the description attribute, something you will not want either.

    
20.09.2015 / 05:24