in reply to Substitution bug on Unicode strings with Byte Order Mark (BOM)
y $html = "\x{feff}<!DOCTYPE HTML PUBLIC> <div class=\"course_detail_b +ox_content\"> </div>"; $html =~ s{(?!(?!)\x{100}).*?</div><div\s+class="course_detail_box_con +tent">}{}s;
(?!(?!)...) always matches exactly zero characters, and serves as a mechanism to include a non-byte character into the pattern.
|
|---|