If I have a block such as:
*/{possibly some spaces}
Some text
{Blank Line}
Some more text
Yet more text
{single space}
etc
etc for n lines
/*
Can I replace it with:
*/ Some new text /*
If so what is the syntax - If I can get this to work I will buy the product.
Basically I want to able to replace everything between */ and /* with a single line of text
Our regular expression engine allows to cover almost any block of text. Let us solve your problem step by step. The best practice is to use the Regular Expression Laboratory to work out an expression that would match a block.
The following regular expression would match any text between */ and /*:
\*\/.#\/\*
In this expression:
\*\/ designates the start of the block. We use regular expressions thus we have to escape non-alphanumeric symbols. .# is an expression that will match any symbol until the first occurence of /* is found. Dot means any charachter, and # means "continue previous match 1 or more times". \/\* designates the end of the block.