Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/urbanjost/m_regex
Fortran interface to the POSIX 1003.2 regular expression library
https://github.com/urbanjost/m_regex
fortran fortran-package-manager fpm regular-expression
Last synced: about 6 hours ago
JSON representation
Fortran interface to the POSIX 1003.2 regular expression library
- Host: GitHub
- URL: https://github.com/urbanjost/m_regex
- Owner: urbanjost
- License: mit
- Created: 2022-12-20T16:44:01.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-29T23:59:49.000Z (6 months ago)
- Last Synced: 2024-04-30T00:46:18.632Z (6 months ago)
- Topics: fortran, fortran-package-manager, fpm, regular-expression
- Language: Fortran
- Homepage:
- Size: 1.16 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
---
![M_regex](docs/images/regex.gif)
---
## Fortran interface to C POSIX regular expressionsThis is a Fortran interface to the POSIX 1003.2 regular expression
library using ISO_C_BINDING based on the example in the Fortran wiki.It adds man-pages and an fpm(1) interface and a unit test.
Volunteers to extend it are welcome
---
![-](docs/images/gnu.gif)
---
## BUILDING THE MODULE USING make(1)
```bash
git clone https://github.com/urbanjost/M_regex.git
cd M_regex/src
# change Makefile if not using one of the listed compilers
# for gfortran
make clean
make F90=gfortran gfortran
# for ifort
make clean
make F90=ifort ifort# for nvfortran
make clean
make F90=nvfortran nvfortran
```
This will compile the Fortran module and basic example
program that exercise the routine.---
![-](docs/images/fpm_logo.gif)
---
## BUILD and TEST with FPMAlternatively, download the github repository and build it with
fpm ( as described at [Fortran Package Manager](https://github.com/fortran-lang/fpm) )```bash
git clone https://github.com/urbanjost/M_regex.git
cd M_regex
fpm test
```or just list it as a dependency in your fpm.toml project file.
```toml
[dependencies]
M_regex = { git = "https://github.com/urbanjost/M_regex.git" }
```---
![-](docs/images/docs.gif)
---
## DOCUMENTATION### USER
- A single page that uses javascript to combine all the HTML
descriptions of the man-pages is at
[BOOK_M_regex](https://urbanjost.github.io/M_regex/BOOK_M_regex.html).
- a simple index to the man-pages in HTML form for the
[routines](https://urbanjost.github.io/M_regex/man3.html)
- There are man-pages in the repository download in the docs/ directory
that may be installed on ULS (Unix-Like Systems).
- ![man-pages](docs/images/manpages.gif)
+ [manpages.zip](https://urbanjost.github.io/M_regex/manpages.zip)
+ [manpages.tgz](https://urbanjost.github.io/M_regex/manpages.tgz)- [CHANGELOG](docs/CHANGELOG.md) provides a history of significant changes
### DEVELOPER
- [ford(1) output](https://urbanjost.github.io/M_regex/fpm-ford/index.html).
- [github action status](docs/STATUS.md)---
## PEDIGREEThis is a modified version of the Fortran wiki
entry [regex_module](https://fortranwiki.org/fortran/show/regex_module)## SEE ALSO
- https://github.com/sage-git/regex-fortran
- https://github.com/urbanjost/M_match
- https://github.com/ZedThree/fortran_pcre
- https://github.com/interkosmos/fortran-unix
- https://github.com/urbanjost/general-purpose-fortran
- https://github.com/vmagnin/gtk-fortran/blob/gtk3/examples/regex.f90
- https://swtch.com/~rsc/regexp/
- https://fortran-lang.discourse.group/t/regular-expressions-regex-and-fortran/778
- https://github.com/search?q=fortran+regex
- http://www.pcre.org/
- https://developer.gnome.org/glib/stable/glib-Perl-compatible-regular-expressions.html
- https://en.wikipedia.org/wiki/GLib---
![-](docs/images/ref.gif)
---
## REFERENCES- [Wikipedia](https://en.wikipedia.org/wiki/Regular_expression)
---