Skip to content

Steveorevo/string

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

!!! This package is old, consider using https://github.com/steveorevo/string.js for your JavaScript string needs !!!

String

String provides extended string parsing functions. This function library is available in JavaScript. ActionScript, PHP, Lingo, Visual Basic, and Xojo. Contact author for commercial licensing.

example

The beauty of these natural, chain-able functions are to locate a given substring from right-to-left or left-to-right and extract or delete upto and including given content. The example illustrates isolating the substring "Hello Earth" from the given string.

require('String');
var sample = 'The Sun said, "Hello Earth" to third planet.';
var result = sample.delRightMost('" to').delLeftMost('said, "'); // result now contains Hello Earth

###Node.js

Package is available through npm:

$ npm install StringParse

About

Provides extended string parsing functions. This function library is available in JavaScript. ActionScript, PHP, Lingo, Visual Basic, and Xojo.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors