Hi Users i need to search some word betwen words
-
I will try to tell You what I mean with an example. I need to search some phrases between words or numbers for example:
04 01 04 02 04 03 04 05 04 06 04 07 04
I want to find 01 02 03 04 05 06 07 hided betwen 04 so how to find it?
Or another example I would like to find this digits 01 02 03 04 05 06 07 hided betwen 28 but I don’t know this 28 number or 04 from an top example.
28 01 28 02 28 03 28 05 28 06 28 07 28
-
@jan-kobiela said in Hi Users i need to search some word betwen words:
I need to search some phrases between words or numbers for example:
Your examples don’t really fit your explanation, however I will attempt to provide some information and also ask further questions.
When you say you want to search for “phrases” this generally means strings of characters delimited by a space, these can also be called sentences of portions of them. Yet your example has only numbers which doesn’t really help.
As it would seem that you want every second word/string of characters it implies the space character MUST be the delimiter. If so then the following would suffice. As this initial solution is destructive you would need to work on a copy of your file, not the original.
Use the “Replace” function and as this is a regular expression you will need to have the search mode set to “regular expression”.
Find What:[^\x20\r\n]+\x20([^\x20+\r\n]+)
Replace With:\1
Then click on the “Replace All” button. Every second word will remain.As I said, this is likely only an initial answer. If you were to read the `Please Read This Before Posting" at the top of this group you will then know how to properly provide examples, and you should provide better examples as currently your example and question are too vague to be sure that my answer will actually help.
Terry