
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
.. image:: https://travis-ci.org/unnonouno/mrep.svg?branch=master :target: https://travis-ci.org/unnonouno/mrep
.. image:: https://coveralls.io/repos/unnonouno/mrep/badge.png?branch=master :target: https://coveralls.io/r/unnonouno/mrep?branch=master
MREP is a regular expression matcher for morpheme sequences. You can find morpheme sub-sequences that match a given pattern, such as noun sequences.
::
$ pip install mrep
If you do not have a dictionary for MeCab, install unidic-lite
.
::
$ pip install unidic-lite
If you want to install it from its source, use setup.py
.
::
$ python setup.py install
::
usage: mrep [-h] [-o] [--color {never,auto,always}] [-n] [--mecab-arg MECAB_ARG] PATTERN [FILE [FILE ...]]
positional arguments:
:PATTERN
: pattern
:FILE
: data file
optional arguments: -h, --help show this help message and exit -o, --only-matching print only matching --color COLOR color mode. select from "never", "auto" and "always". (default: auto) -n, --line-number Show line number --mecab-arg MECAB_ARG argument to pass to mecab (ex: "-r /path/to/resource/file")
.
matches all morphemes
<surface=XXX>
matches morphemes whose surface are XXX
<pos=XXX>
matches morphemes whose POS are XXX
<feature=XXX>
matches morphemes whose features are XXX
<feature=~XXX>
matches morphemes whose features maches a RegExp pattern XXX
X*
matches repetiion of a pattern X
X|Y
matches X or Y
(X)
matches X
<pos=名詞>
matches a noun
<pos=名詞>*
matches repetition of nouns
<pos=名詞>*<pos=助詞>
matches repetition of nouns and a particle
(<pos=名詞>|<pos=動詞>)*
matches repetition of nouns or verbs
This program is distributed under the MIT license.
(c) 2014, Yuya Unno.
FAQs
MREP: morpheme regular expression printer
We found that mrep demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.