Question

I want to add cursor on all marked text in notepad++? How to select all marked items and edit at once? I want to add "}}" on all marked (at the end of marked) change **{{!COL1** to **{{!col1}}** and so on....

TAG POS=1 TYPE=INPUT:TEXT FORM=ID:form ATTR=ID:url CONTENT={{!**COL1**
TAG POS=1 TYPE=SELECT FORM=ID:form ATTR=ID:limit CONTENT=%

TAG POS=1 TYPE=INPUT:TEXT FORM=ID:form ATTR=ID:url CONTENT={{!**COL2**
TAG POS=1 TYPE=SELECT FORM=ID:form ATTR=ID:limit CONTENT=%
Was it helpful?

Solution

You can use the search/replace functionality.

If you like to add }} to each match, then you have to play around with the regular expressions, e.g. search for {{COL(\d+) and replace with {{col\1}}. Be sure to set search mode to Regular expression.

The \d+ will match 'one or more digits'.

Using () in the search term will introduce backtracking; each group of ()s can be referenced to by \<number> in the replace section.

More info on http://markantoniou.blogspot.nl/2008/06/notepad-how-to-use-regular-expressions.html.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top