Re: newbie with RE problem

2004-06-25 Thread Jeff 'japhy' Pinyan
On Jun 24, [EMAIL PROTECTED] said: >Berkeley >Instructor: > >with this: >Berkeley > >Instructor: > > >catch, Berkeley also appears elsewhere in file but I only want it changed >if Instructor: follows > 8 #read in whole file > 9 undef $/; >10 >11 while(<>){ >12 s{ >

newbie with RE problem

2004-06-25 Thread pmd
Hi, perhaps someone could shed some light on this...here's what I'm trying to do: replace this pattern: Berkeley Instructor: with this: Berkeley Instructor: catch, Berkeley also appears elsewhere in file but I only want it changed if Instructor: follows here's the code that's not working: --