\*\*\*\*...
Would anybody know how to do that?
See \Q in "perldoc perlre".
jue
> I wanna search a string "*********" and I remember some special characters
> can be used to tell the match so I need not type something like:
>
> \*\*\*\*...
(1) See jue's hint
(2) use the ...{}-quantifier, eg.
/\*{5}/
to match exactly 5 asterisks, or
/\*{2,7}/
to match two up to seven of them.
Again, read
perldoc perlre
hth + mfg,
Hartmut
--
------------------------------------------------
Hartmut Camphausen h.camp[bei]textix[punkt]de
> (2) use the ...{}-quantifier, eg.
>
> /\*{5}/
>
> to match exactly 5 asterisks, or
Or, if you are backslash-averse as I am, you can write it as:
/[*]{5}/
--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
Yes, but in Perl before 5.10 the backslashed version is more efficient.
John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall