I need a pattern / search string to remove everything between the "[" and "]" characters. An example would be:
This study [ref] is a good example
This should become:
This study is a good example
I found this regex here \<(*{1,})\> but although it works with < and >, it doesn't with [ and ].
When I use \[(*{1,})\] world "says" that they can't find what I am looking for.
I am trying to remove some formatings from wikipedia articles and this regex doesn't remove the [edit] next to the headings. (I use the merge formating paste)
\escapes special characters such as[and]. Therefore, if you checked "use wildcards" in the Find & Replace dialog, you need to escape them as\[and\]. – daniel.heydebreck Dec 10 '15 at 09:12\[(*{1,})\].Somehow, this doesn't match the[edit]next to the heading of a wikipedia article – MagTun Dec 10 '15 at 09:16*represents already an arbitrary number of string characters. Therefore, you can drop{1,}. Alternatively, you could write\[[a-zA-Z ]{1,}\]. The(and)are also not needed. – daniel.heydebreck Dec 10 '15 at 09:31