跳至内容
菜单
此问题已终结
1 回复
1848 查看

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?

形象
丢弃
编写者 最佳答案

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).*$


形象
丢弃
相关帖文 回复 查看 活动
0
10月 24
1392
0
10月 23
1985
5
6月 23
4430
0
11月 22
1812
1
8月 22
2940