View Single Post
  #2  
Old 11-20-2005, 01:10 PM
StevieG StevieG is offline
Senior Member
 
Join Date: Jan 2003
Location: Baltimore, MD, USA
Posts: 157
Default Re: any perl-db/emacs jockeys here?

What do you want to see?

A regex is evaluated as an expression, like == and therefore the "result" is boolean in nature.

If you want to see what matched, there are special variables for successfull matches.

$& gets the part of the string that matched the regex

$` gets the part of the string before what matched

$' gets the part of the string after what matched


It might help tp see a larger context of what you are doing and what you want.
Reply With Quote