Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple regex question

Status
Not open for further replies.
As I have just jumped in another thread of regex, let's say this.
[tt]
my $pattern='r';
my $str='error';
my $count=()=$str=~/$pattern/g;
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top