0

I have been trying to get some regex statements to work for the past few hours, but I can not seem to figure out what I am doing wrong.

here is what I currently have:

(?<!.)\d{4}[\.]\d{2}(?!.)|(?<!.)\d{4}(?!.)

The data I am trying to match looks like

1234.00
1546.34
1234
2345

but it is mixed into other text and numbers. I need to filter out anything with preceding or proceeding characters so it does not match something like the following

d12394-005

The fourth bird
  • 154,723
  • 16
  • 55
  • 70

0 Answers0