L
Lydia Shawn
hi there,
i want to extract the numbers from this example
input:
bla trigger3 trigger4 trigger1 blabla trigger1 5000.00 trigger3
trigger1 trigger2 trigger2 600.00 trigger4
trigger1 50.00 trigger4
i want to extract the numbers everytime they occur between trigger1 or
2 and trigger3 or 4.
so output:
5000,00
600,00
50,00
i thought i could use something like this
$return =~ /($trigger1|trigger2)(.*)(trigger3|trigger4)/si ;
but obviously i can't.. cause it doesn't work..
your ideas are very welcome!
thanks!!
lydia
i want to extract the numbers from this example
input:
bla trigger3 trigger4 trigger1 blabla trigger1 5000.00 trigger3
trigger1 trigger2 trigger2 600.00 trigger4
trigger1 50.00 trigger4
i want to extract the numbers everytime they occur between trigger1 or
2 and trigger3 or 4.
so output:
5000,00
600,00
50,00
i thought i could use something like this
$return =~ /($trigger1|trigger2)(.*)(trigger3|trigger4)/si ;
but obviously i can't.. cause it doesn't work..
your ideas are very welcome!
thanks!!
lydia