Copy Code line numbers delete regex


When copying code from Web pages(z.B. Zend.com) it may occur, that the lines of code containing numbers, e.g..

  1. // Parameters for ClientAuth authentication
  2. $service = Zend_Gdata_Gbase::AUTH_SERVICE_NAME;
  3. $user = “”;
  4. $pass = “pa $ $ w0rd”;
  5. // Create an authenticated HTTP client
  6. $client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $service);
  7. // Create an instance of the Base service
  8. $service = new Zend_Gdata_Gbase($client);
To clear the Zeilennumern, can e.g.. following command to run with Netbeans:
STRG H (SEARCH and REPLACE)
Find what: [0-9]{1,2}.\n
Replace with: (blank)
Select: Regular Expressions

Regular Expressions Netbeans