Skip to content

Code for extracting field-like text from unformatted strings

License

Notifications You must be signed in to change notification settings

Rairye/freefields-from-string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

freefields-from-string

Code for extracting field-like text from unformatted strings.

Sample using get_fields.js

Note: The fields must be specified in order. The text is case-sensitive.

source = "Product: My product Price: 45 Qty: 3"
fields = ["Product:", "Price:", "Qty:"]
values = getFieldIValues(source, fields);

console.log(values);

About

Code for extracting field-like text from unformatted strings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published