Elijah has asked for the wisdom of the Perl Monks concerning the following question:
It works fine for ever other word I have being searhed for but not the # character.my $word = '#'; my $next = "1.0"; while (my $from = $t->search(-regexp, "\\b$word\\b", $next +, "end")) { my $word_len = length $' + 1; print $word; print $word_len; $next = "$from + $word_len chars"; $t->tagAdd("red", $from, $next); $t->tagAdd("bold", $from, $next); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regexp pattern match help?
by Roger (Parson) on Dec 03, 2003 at 00:47 UTC | |
by Abigail-II (Bishop) on Dec 03, 2003 at 01:20 UTC | |
by Elijah (Hermit) on Dec 03, 2003 at 06:52 UTC | |
by ysth (Canon) on Dec 03, 2003 at 07:35 UTC |