Here i provide the solution to u r example document using regular expression in perl.
Here i read a file data word by word and push that data into array and print the first value of the array
if u have any doubts or find any error in code please make a follow up
Code:
open(alpha,"alphastring.txt"); while(<alpha>){ while($_ =~ /([a-zA-Z]+)/ig) {
Leave a comment: