PHPackages                             strscan/strscan - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. strscan/strscan

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

strscan/strscan
===============

Simple string tokenizer for lexical scanning operations

1.0.3(11y ago)13146.8k↓18.6%12MITPHPPHP &gt;=5.3.0

Since Aug 24Pushed 11y ago3 watchersCompare

[ Source](https://github.com/nramenta/strscan-php)[ Packagist](https://packagist.org/packages/strscan/strscan)[ RSS](/packages/strscan-strscan/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (2)

strscan-php
===========

[](#strscan-php)

strscan-php is a simple string tokenizer for lexical scanning operations. It's a PHP port of [strscan-js](https://github.com/sstephenson/strscan-js), which in turn is a JavaScript port of the Ruby library with the same name. This library assumes the mbstring extension is enabled and all strings to be UTF-8.

Installation
------------

[](#installation)

The recommended way to install strscan-php is [through composer](http://getcomposer.org).

Usage
-----

[](#usage)

```
