regex - RegExp taking out Unique numbers outta n list of numbers(arranged linewise) [Using BareTailPro Log Matcher - Real Time Analyzer] -
How can I extract a unique number from a long list of numbers (systematic line wrap)? I need a regular expression to do this.
I am using a log program called BertellPayer which searches through log data and displays per regex.
Example Input:
123 321 123 432 343 343 432 811 932 432 ... The list extends to N number Example output:
123 321 432 343 811 9 32 ... The list extends to N number RGDS, Anita < / Div>
If it is indeed is a regex, and if Barrettelpru supports letterhead reagases , Then you
^ (\ D +) $ \ r? \ N? (? =. *. * ^ \ 1 $) and replace all with empty space (empty string) You must set the dot option to match all the characters including the newline ; If you do not have that option, instead of ^ (\ d +) $ \ r? \ N? (? = [\ S \ S] * ^ \ 1 $)
With this problem, it will remove all events of duplicate numbers except regex previous one if you want to keep one first, then see your regex engine Should support and behind it should be infinite recurrence. Hardly any regex engine is apart of .NET and JGSoft. But if you can use it, then it would be better:
(? & Lt; = ^ \ 1 $. *) ^ (\ D +) $ \ r? \ N?
Comments
Post a Comment