By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!echo foo^&bar^&baz | tpipe /selection=7,0,1,1,0,5,"&",0
v:\> type "http://forecast.weather.gov/MapClick.php?CityName=Syracuse&state=NY&site=BGM&textField1=43.0446&textField2=-76.1459&e=0" | egrep "point-fore.*High|point-fore.*Low" | notags| cut -d"&" -f1 | tr -s " " " " | sed 's/Low: /Low: /g'
High: 27
Low: 10
High: 30
Low: 23
High: 31
Low: 21
High: 33
Low: 20
High: 32
v:\> type "http://forecast.weather.gov/MapClick.php?CityName=Syracuse&state=NY&site=BGM&textField1=43.0446&textField2=-76.1459&e=0" | tpipe /grep=3,0,0,1,0,0,0,0,"point-fore.*High|point-fore.*Low" /simple=16 /selection=7,0,2,2,0,5,"&",0 /simple=19 /replace=0,1,0,1,0,0,0,0,0,"Low: ","Low: "
High: 27
Low: 10
High: 30
Low: 23
High: 31
Low: 21
High: 33
Low: 20
High: 32
type file | tr -s " " " " | cut -d " " -f2-5 (squeeze spaces and pick space-delimited columns 2-5)
type file | tpipe /squeeze=" " /cut=" ",2,5
tpipe /replace=0,1,0,0,0,0,0,0,0,"xx","x"
/replace=4,1,0,0,0,0,0,0,0,x*,x
v:\> echo fooxxxxxxxxbar | tpipe /replace=4,1,0,0,0,0,0,0,0,"x.a*","Z"
fooZZZZbar
g:\tc14> echo fooxxxxxxxxbar | tpipe /replace=4,1,0,0,0,0,0,0,0,x+,z
foozzzzzzzzbar
g:\tc14> echo fooxxxxxxxxbar | tpipe /replace=4,1,0,0,0,0,0,0,0,x+?,z
foozbar
Rex, do you build TEXTPIPEENGINE.DLL?
From what I gleaned from the DataMystic docs, ungreedy Perl regular expressions should not be the default. Yet they seem to be so. Perhaps you'd ask the developers about that.