interclubs
asked on
PHP Regular Expression for formatting comments...
I'm trying to clean up some comments in a bunch of pages, and I want them to be in this format:
/* this is
* a comment
* and I like it with a space in front of the asteriks
*
*/
But most of them seem to be like this:
/* this is a comment
foo bar
comment text
*/
Can I use regex to fix them? And if so what would it be?
/* this is
* a comment
* and I like it with a space in front of the asteriks
*
*/
But most of them seem to be like this:
/* this is a comment
foo bar
comment text
*/
Can I use regex to fix them? And if so what would it be?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
kaufmed is probably right (usually is) but I am curious -- how many such files are involved?
ASKER
probably about 200 hundred....