$string = "select * from EMP where EMPNO=&eno and DEPTNO=&dno and JOB= +&job"; @arr = split('\s+',$string); foreach $i (@arr) { if($i =~ /\&/g) { @arr1 = split('&',$i); print $arr1[0]."\n"; } }
In reply to Re^2: Regular Expression Question !!!
by slg_saravanan
in thread Regular Expression Question !!!
by slg_saravanan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |