|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Please Help w/Perl Script
I am trying to find every occurrence of a pattern within a string, and remove it. For example:
$string = "abcdabcdabcd"; and I want to remove every a so that $string = "bcdbcdbcd" is there a function that does that? Or a simple way. I know I can use index() and loop through and do substr() etc...but is there a more eloquent solution? |
|
#2
|
|||
|
|||
|
$string=~s/a//g;
Also see: http://www.gossland.com/course/matching/advanced.html |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > Please Help w/Perl Script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|