Skip to Content
मेन्यू
This question has been flagged
1 Reply
1840 Views

I have written what I think is a very simple regex pattern for matching transactions from my bank feed, but it's not working as expected.

this is the regex for the Label:

PARKING|TRANSPORT|SCENTRE|PARK|TOLL

the intention is to find any transaction that has any of these words in it

  • parking
  • transport
  • scentre Park 
  • toll

this is working for quite a few transactions, however I have a transaction with this label:

THE SPOT WILSON PARKING  RANDWICK CREDIT CARD PURCHASE

and for some reason it's not matching this transaction. any ideas?

Avatar
Discard
Author Best Answer

I resolved this by creating a regex that matches the entire string, not just part of the string:

^.*(some string|some other string|patternX|patternY).*$


Avatar
Discard
Related Posts Replies Views Activity
0
अक्तू॰ 24
1386
0
अक्तू॰ 23
1981
5
जून 23
4417
0
नव॰ 22
1806
1
अग॰ 22
2936