To find tags and replace text between tags in Notepad++, I do use the following example:
(?<=<barcode>)(.*)(?=</barcode>)
I was wondering if it is possible to search between certain tags for a text that contains more than 20 characters?
You can use or adapt the following expression for your needs.
[\S]
finds all characters except space (identical to [^\s]) and {21,}
requires at least 21 characters of text.
(?<=<barcode>)([\S]{21,})(?=</barcode>)
For text with spaces use:
(?<=<barcode>)(.{21,})(?=</barcode>)
{21,}
somewhere..*
with.{21,}
or.{20,}
depending if you want strictly>20
or>=20
characters