in reply to Re^3: string pattern match, limited to first 1000 characters?
in thread string pattern match, limited to first 1000 characters?
(I added the '<' to the text to make it more specific, and also removed the /s qualifier -- in my situation, both of these tweaks boosted performance.)$str =~ /\A.{0,995}?<html/i
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: string pattern match, limited to first 1000 characters?
by shmem (Chancellor) on Jun 24, 2007 at 10:04 UTC | |
by ManFromNeptune (Scribe) on Jun 25, 2007 at 17:32 UTC |