develooper Front page | perl.beginners | Postings from December 2002

Reg ex help!

Thread Next
From:
Johnstone, Colin
Date:
December 19, 2002 16:55
Subject:
Reg ex help!
Message ID:
1CE69FABC71E184C8991EBD0B31A9EE293402C@fpfexch1.central.det.win
Gidday All,
 
Im reading course names in from a text file and want to remove the course number from the end of each course name. Can someone help me with the regex to do this.
 
e.g Mathematics 2 unit (15240)
 
to give me Mathematics 2 unit

Thanking you in anticipation.
 
 

Colin Johnstone 
Website Project Officer 
Corporate Website Unit 
Public Affairs Directorate 
ph 9561 8643 

 

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About