Skip to content

Commit

Permalink
update instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
stan committed Mar 24, 2018
1 parent 1e0ade4 commit 914d1c4
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,28 @@ It populates "Select Import File:" dropdown with my list of files that match my
`for Discover: `
`(DFS-|Discover).*\.(csv|CSV) matches DFS- or Discover, then anything, then .csv or .CSV`
`like DFS-whatever.csv or Discover.1234.CSV`

** regex field parsing changed in v21 to hopefully give more flexibility. you need to use "named capture groups", as in:
`"?(?<value>.*?)"?(?:[,]|\Z)(?<rest>.*)`

value = what string you want to pull out for the field value.
rest = is left over line to parse next.

if you have this line:
01/14/2018,check 3000,My Store,$123.40,whatever

it will parse like this:
get value = 01/14/2018
rest = check 3000,My Store,$123.40,whatever

get value = check 3000
rest = My Store,$123.40,whatever

get value = My Store
rest = $123.40,whatever

get value = $123.40
rest = whatever

get value = whatever
rest =

0 comments on commit 914d1c4

Please sign in to comment.