Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add substring action #6

Closed
parmentf opened this issue Mar 10, 2015 · 1 comment
Closed

Add substring action #6

parmentf opened this issue Mar 10, 2015 · 1 comment
Assignees

Comments

@parmentf
Copy link
Contributor

For the moment, if you want to extract the month from a string "20150310", you have to mess withtruncateandshift`.

{
  "truncate": 6,
  "shift": 4
}

Maybe a substring: [offset, length] action would be more user friendly:

{
  "substring": [4,2]
}
@parmentf parmentf self-assigned this Mar 10, 2015
@parmentf
Copy link
Contributor Author

89d9943 made it.
Will be available from v3.4.0+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant