Detecting patterns in strings

Hello everyone!

I'm trying to find patterns in a set of strings as the following example:

2100780D001378FF01E1000000040000--------01A456000000------------
3100782D001378FF03E1008100040000--------01A445800000------------

If I use the standard get_pattern from the bpa library, I will get
9999999A999999AA99A9999999999999--------99A999999999------------
since it looks individually to every string, but my idea would be to find something like:
X10078XD001378FF0XE100XX00040000--------01A4XXX00000------------

Any idea of how I can accomplish this mission?

I don't have prior knowledge of the bpa package you mention, so I base my response only on a straight reading of your post. If you dont want it to find a pattern covering all strings, but a subset of them, the implication is that you should filter your data prior to calling the function ?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.