0.1.8 • Published 9 months ago

@3-/extract v0.1.8

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
9 months ago

@3-/extract

test/main.coffee :

#!/usr/bin/env coffee

> @3-/extract
  @3-/extract/extractLi.js
  @3-/extract/extractAllLi.js
# console.log extract('<a>','</a>','12<a>b</a>23')

txt = '<1>a</2><3>b</4>56'
# li = []
for i from extractAllLi(
  '<','>',txt
)
  # li.push i
  console.log i

# t2 = li.map((i)=>i[1]).join('')
# console.log t2 == txt
# console.log txt
# console.log t2

output :

[ 0, '<' ]
[ 1, '1' ]
[ 0, '>a<' ]
[ 1, '/2' ]
[ 0, '><' ]
[ 1, '3' ]
[ 0, '>b<' ]
[ 1, '/4' ]
[ 0, '>56' ]

About

This project is an open-source component of i18n.site ⋅ Internationalization Solution.

关于

本项目为 i18n.site ⋅ 国际化解决方案 的开源组件。

0.1.2

10 months ago

0.1.1

10 months ago

0.1.8

9 months ago

0.1.7

9 months ago

0.1.3

10 months ago

0.0.4

10 months ago

0.1.6

10 months ago

0.1.5

10 months ago

0.0.6

10 months ago

0.0.2

1 year ago

0.0.1

2 years ago