I am trying to create a REGEX which captures the following string :
returnedData=dfsavdasvfdvdvvjwfwhvfwjhfvwjhevfwjvfw04040000N.sdfsgs.sfgakhvsafjhafj ksajbd 234.234 bfsdf sudhfkusa 77907 23 gfksahgkf bkhkjakjsf - CB123214124
But I want it captured after the numbers in the middle (04040000). Problem is the Regex I am using is capturing it as a whole :
(returnedData)+([A-Za-z0-9=:\s\-@+?\.])*(-\s)(CB)
The string I want captured is : N.sdfsgs.sfgakhvsafjhafj ksajbd 234.234 bfsdf sudhfkusa 77907 23 gfksahgkf bkhkjakjsf - CB
This has to be used in IBM LogDNA which does not support Lookbehinds. Hence the limitation. The regex need to be entered in a YAML file so no code is acceptable only REGEX can be used