![]() Preserved Topic: Replacing and filtering scalars in Perl (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
![]() How do all those nifty shorthand find-n-replace and filtering lines in Perl? |
Nervous Wreck (II) Inmate From: Indianapolis, In USA |
![]() Regular expressions are on of Perl's many cool tools. Here's a good tutorial that's easy to understand: |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
![]() oo.. neat-o keen! things got a lot easier when I figured out that they were called regexes.. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() what to you mean by replace? |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
![]() oh, I see... |
Bipolar (III) Inmate From: USA! USA! USA! |
![]() The /o flag actually causes the regular expression containing variables to be compiled only once. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() /g is usually the only flag I use. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() whoops my bad |