bigD Posted September 15, 2010 Share Posted September 15, 2010 Hello, I come from a C and PERL background. I seem to have trouble finding how to do this easily. What is the PERL equivalent of: $var =~ s/^\+//g; // remove a plus from the beginning, and from the entire string. Thanks. Link to comment https://forums.phpfreaks.com/topic/213455-question-on-preg/ Share on other sites More sharing options...
bigD Posted September 15, 2010 Author Share Posted September 15, 2010 Hello, I come from a C and PERL background. I seem to have trouble finding how to do this easily. What is the PERL equivalent of: $var =~ s/^\+//g; // remove a plus from the beginning, and from the entire string. Thanks. I got it... I was misreading my documentation. Link to comment https://forums.phpfreaks.com/topic/213455-question-on-preg/#findComment-1111257 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.