when i copy and paste text from a webpage to a txt file and have perl open it, i get these strange boxes where there should be spaces. how do i use perl to replace them?
Wade_1
0
Newbie Poster
Recommended Answers
Jump to PostHi Wade_1,
How are you reading the text file from with your Perl script?
What are the text copied into the text file? Obviously, these will be a UTF8 charater set issue.
Moreover, you don't need to copy from a webpage into a text file, before opening and reading the …
Jump to Posttry this:
$str =~ s/[^a-z]/ /ig;
Hope it helps
All 7 Replies
Wade_1
0
Newbie Poster
2teez
43
Posting Whiz
Wade_1
0
Newbie Poster
2teez
43
Posting Whiz
Wade_1
0
Newbie Poster
Wade_1
0
Newbie Poster
2teez
43
Posting Whiz
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.