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. Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/213455-question-on-preg/#findComment-1111257 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.