Regex help (for yahoo pipes) -


i have following string:

 <span class="pos">$2.472,38</span> 

i 2472,38 (and 2472.38)

i've been trying in regexpal, , found [\d,.]+ seems work, due way regex module of yahoo pipes work (replace ... ..., have first select string

so thinking

replace .+([\d,.]+).+ $1 

but that's giving me result 8 (the last digit). guess not right way i'm defining capture group. clue? in advance

you can find pipe here http://pipes.yahoo.com/pipes/pipe.info?_id=06780ca250e5b107b7c1ef52455996ff

your first subexpression .+ being "greedy" (i.e. trying match can while still allowing whole expression succeed), it's matching until last digit. need "stop" before start of digits somehow based on knowledge of can precede digits. if know there dollar sign right before digit , no dollar/digit combinations in span element, can add \$ after .+, in .+\$([\d,.]+).+


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -