Board Thread:Support Requests - Getting Technical/@comment-3279487-20170317043833

Hello everybody, I'd like to know how I can restrict the application of a regex only inside a particular infobox, an infobox for example. Up until now I usually try to "capture" the part before and after what I want to edit, but it doesn't seem to be the best method. I've read about the lookup ahead/behind methods but I was successful with them. I'm using the regex with AWB.

I'll give you an example of what I'm trying to do. in all templates Profilo personaggio I want to make every current list (which are simply elements on a new line) a wiki list. This is the regex I'm using:


 * Find: (multiline): ^([^\|\s])
 * Replace: * $1

However I have to restrict it only inside the template, otherwise will mess up the entire page.

I would also like to understand the basic use of the advanced find and replace tool.
 * For example, I don't understand the relationship between a rule and a subrule. I understand that a subrule is tested only if the parent rule has a match, but is the subrule tested on the whole page again or only in the matched result of the parent rule?
 * What's the use of "apply n° of times"? When is it useful? 