Here's an example of strings I've to treat:
<pnr>0240978840</pnr>;Amplificator AD8622ARMZ;<upa>1</upa>
<pnr>0273101670</pnr>;Power Management LT1236BIS8-10;<upa>1</upa>
<pnr>0299801750</pnr>;Power Management LT1175IS8-5;<upa>3</upa>
<pnr>0233201780</pnr>;Amplificator LT1498CS8;<upa>4</upa>
I've been seaching for a while and tried several patterns to embed the "name" of the electronic component in the tag and the following string in tag to get:
<kwd>Amplificator</kwd><adt>AD8622ARMZ</adt>
<kwd>Power Management</kwd><adt>LT1236BIS8-10</adt>
Thus, for this instance, I search: "Amplificator" but not "AD8622ARMZ" "Power Management" but not "LT1236BIS8-10".
I don't understand how to search words with letters only and not words with letters AND digits. I tried:
;(\w+)\s*(\D+) which finds ;Amplificator AD and ;Power Management LT
;(\w+)\s*([^\W+]+) which finds ;Amplificator AD8622ARMZ and ;Power Management (only !)
;(\w+)\s*([^\d]) which finds ;Amplificator A
;(\w+)\s*(\D+)\S which finds ;Amplificator A and ;Power Management LT1
;(\w+)\s*([a-zA-Z]+)[^0-9]+ which finds ;Amplificator AD and ;Power Management LT
I start to use regex since few days but it's very hard for me to understand the "rules:
Ok, \w
is a word with letters and digits
\d
is a digit but how to express a word with letters and no digits ?
I read numerous tutos but some of them are very too hard and token used are nos as simple as written in the help...
The purpose for me is not only the answer but I really want to improve myself and understand...
Many thanks by advance for your lights. If anyone knows a tuto regex notepad++ tuto for not totally beginner, it'd be great !
Best regards