I'm using Notepad++ and I would like to find the regular expression which match with the start and the end of a line. For exemple: En este nivel se estudia la forma de construir los dispositivos (electrónicos) I want that the regular expression matches with 'E' and ')'. I have tried ^[E]+)$

Thank you!


If you really want a single regular expression that matches the first and the last character of each string, then here it is: (^.|.$).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.