Please help, I'm a newb at perl and I can't figure this out.
From: Alex (superfan_at_telocity.com)
Date: 03/15/04
- Next message: Joe Smith: "Re: adding ascii values in string"
- Previous message: Alistair Steger-Lewis: "sending commands to a shell"
- Next in thread: Berk Birand: "Re: Please help, I'm a newb at perl and I can't figure this out."
- Reply: Berk Birand: "Re: Please help, I'm a newb at perl and I can't figure this out."
- Reply: Gunnar Hjalmarsson: "Re: Please help, I'm a newb at perl and I can't figure this out."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 15 Mar 2004 13:33:14 -0800
Basically I want to parse some C++ source code and replace some
constants.
I've mangaed to read in the file and replace some of the things that
need replacing. but I'm having a hard time matching a particular
pattern. For example:
cout << "This is a \"String\"" << "With some text";
printf("This is another possible \"string\"");
needs to become:
cout << L"This is a \"String\"" << L"With some text";
wprintf(L"This is another possible \"string\"");
So I need a pattern that will match only the first " of every
substring but not match the final " or \" ....
Could someone point me in the right direction.. thanks for the help..
Alex
- Next message: Joe Smith: "Re: adding ascii values in string"
- Previous message: Alistair Steger-Lewis: "sending commands to a shell"
- Next in thread: Berk Birand: "Re: Please help, I'm a newb at perl and I can't figure this out."
- Reply: Berk Birand: "Re: Please help, I'm a newb at perl and I can't figure this out."
- Reply: Gunnar Hjalmarsson: "Re: Please help, I'm a newb at perl and I can't figure this out."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|