Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Str.regexp #3194

Closed
vicuna opened this issue Sep 30, 2004 · 1 comment
Closed

Str.regexp #3194

vicuna opened this issue Sep 30, 2004 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Sep 30, 2004

Original bug ID: 3194
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Julien Signoles
Version: 3.08.1
OS: Linux Debian
Submission from: pc8-119.lri.fr (129.175.8.119)

Bonjour,

Tout est dans le petit test suivant :


signoles@pc8-119:~> ocaml
Objective Caml version 3.08.1

#load "str.cma";;

open Str;;

string_match (regexp "\]") "]" 0 (* ok *);;

  • : bool = true

string_match (regexp "[\[]") "[" 0 (* ok *);;

  • : bool = true

string_match (regexp "[\]]") "]" 0 (* KO !!! *);;

  • : bool = false

Cordialement,
Julien Signoles

@vicuna
Copy link
Author

vicuna commented Sep 30, 2004

Comment author: administrator

Julien.Signoles@lri.fr writes:

Tout est dans le petit test suivant :


signoles@pc8-119:~> ocaml
Objective Caml version 3.08.1

#load "str.cma";;

open Str;;

string_match (regexp "\]") "]" 0 (* ok *);;

  • : bool = true

string_match (regexp "[\[]") "[" 0 (* ok *);;

  • : bool = true

string_match (regexp "[\]]") "]" 0 (* KO !!! *);;

  • : bool = false

Essaye:

string_match (regexp "[[]") "[" 0 (* ok );;
string_match (regexp "[]]") "]" 0 (
ok !!! *);;

    Didier

@vicuna vicuna closed this as completed Oct 6, 2004
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant