Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~160 People Reached
Favorite Forums
Favorite Tags
perl x 1
Member Avatar for haiahil

Could you please explain how this works. [code=PERL] while (m`(?=.)((?:"((?:""|[^"]+)*)")?([^,]*))(,?)`sg) { print "1=$1 2=$2 3=$3 4=$4 \n"; } [/code] INPUT LINE APPLE,MANGO,"BANNA" OUTPUT 1=APPLE 2= 3=APPLE 4=, 1=MANGO 2= 3=MANGO 4=, 1="BANNA" 2=BANNA 3= 4= Logic is not catching to my little brain, pls help. Thanks.

Member Avatar for iaindb
0
160