Reputation: 453
I can't seem to find an answer to this.
I have a small .dat
file. From that file I would like to extract certain data. As you can see there is a 9 characters long string plus a space then Fixed Value that string is what I would like to find.
One particular line of data is:
hEu 5RS67UCJ2 Fixed Value Ü Ü 5UZZNKV0I Fixed Value Ü3 Ü3 3D910PZ9H Fixed Value Ú9.Ü") Ú90Ü#- Ü") 5YWX8DMR2 Fixed Value Ü Ü 54WI4OGWI Fixed Value Ü
Upvotes: 2
Views: 5069
Reputation: 13169
If you want to match a nine-character uppercase alphanumeric string followed by "Fixed Value" then the following regular expression ought to do the trick:
([A-Z0-9]{9}) Fixed Value
The parentheses around the first part of the pattern form a capture sub-group, so you should be able to refer to this captured part in a "replace" value by using $1
or \1
(depending on how Notepad++ works) in the position where you want the nine-character string to be inserted in the "replace" value.
Upvotes: 8