[NTLUG:Discuss] regular expression question
David Stanaway
david at stanaway.net
Thu May 28 02:07:06 CDT 2009
In perl?
[<]
$ perl -e '$s = qq{a<b}; if ( $s =~ /\w[<]\w/ ) { print qq{Matched $&\n}; }'
Matched a<b
Leroy Tennison wrote:
> I need to match a less-than sign (<). unfortunately, it appears that \<
> has special meaning (Match the empty string at the beginning of word.)
> What do I do? \\< ???
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>
>
More information about the Discuss
mailing list