summary refs log tree commit diff stats
path: root/lib/impure/re.nim
Commit message (Collapse)AuthorAgeFilesLines
* Remove deprecated stuff from stdlib (#14699)Miran2020-06-171-7/+0
| | | | | | | * update to the latest Jester * remove deprecated procs from some stdlib modules * 'criterion' is not maintained anymore and relies on obsolete stuff
* close #14284 document semantics for start for re,nre; improve examples (#14483)Timothee Cour2020-05-281-185/+50
|
* Fail quickly if re or nre module is attempted to be compiled with js ↵Kaushal Modi2020-05-141-1/+3
| | | | | [backport] (#14341) Fixes https://github.com/nim-lang/Nim/issues/14338 .
* added note to re constructor regarding performance (#13224)whiterock2020-01-221-1/+5
| | | Since I was new to regex I did not know that there is a compilation going on with ``re"[abc]"`` constructor and so I followed the other examples in the docs blindly, that is I just put the constructor directly in the arguments of match, find, etc., which was inside a loop and then wondered why my performance was so bad. Of course putting it outside the loop made it vastly more performant. People like me would benefit from the small note I added I would think :)
* ported re.nim to ARCAraq2019-12-241-1/+10
|
* [backport] Fix style issues in lib/, tools/, and testament/. Fixes #12687. ↵3n-k12019-11-281-1/+1
| | | | (#12754)
* Render deprecated pragmas (#8886)LemonBoy2019-06-031-2/+2
| | | | | | | | | * Render deprecated pragmas * fix the expected html * clean up the documentation regarding deprecations * fix typo * fix system.nim * fix random
* fixes #11139 (re.nim memory leak) (#11265)Miran2019-05-161-1/+1
| | | Use the same PCRE function for freeing up the memory as nre.nim does.
* live with the hacks, PCRE's design is crapAraq2019-03-191-2/+5
|
* pcre.nim: added pcre_free and removed hacks in nre and re.nimAndreas Rumpf2019-03-191-5/+2
|
* fix replacef typo in exampleKobi2019-02-131-1/+1
|
* Remove long deprecated stuff (#10332)Miran2019-01-181-26/+1
|
* fix split proc ignored maxsplit argument. Proc split didn't pass maxsplit ↵Denis Lisovik2018-11-111-1/+8
| | | | argument to split iterator
* fixes #9306 properly, fixes #9306Andreas Rumpf2018-10-141-2/+12
|
* Fix type in docs (#9362)Josh Goebel2018-10-141-1/+1
|
* fixes #9306Araq2018-10-111-2/+2
|
* make nimweb compile againAraq2018-08-141-1/+1
|
* WIP: disallow 'nil' for strings and seqsAndreas Rumpf2018-08-131-5/+3
|
* Fix typo: PRCE -> PCREKaushal Modi2018-06-051-3/+3
|
* make re.split consistent with strutils.split and other programming ↵Andreas Rumpf2018-03-051-14/+28
| | | | languages; refs #7278
* Cleanup docs about re.nimAraq2018-03-051-5/+1
|
* re.nim: removed deprecated symbolsAraq2017-11-281-3/+0
|
* re.nim: Make tests green and deprecate 'parallelReplace'; it should be ↵Araq2017-11-281-5/+12
| | | | 'multiReplace' for consistency with strutils.nim
* Remove reExtended from re constructor. Fixes #5627. (#6514)Dominik Picheta2017-10-201-5/+8
| | | | | | * Remove reExtended from re constructor. Fixes #5627. * Implement `rex` procedure as requested by @Araq.
* Fixes #5382Anatoly Galiulin2017-02-131-1/+1
|
* re additions for buffer (cstring) RE matching (#5117)jlp7652017-01-161-98/+244
| | | | | | | | | | | | | | | | | | * Replace expr with untyped * Add buffer (cstring) related procs Replace expr with untyped Replace testing assert() procs with doAssert() * make the string variants call the cstring variants in order to fight code size * Remove redundant proc * fix casting of cstring add init of variables (identified by verbosity:3) * Speed up - use pattern.e for exec() inline some procs
* Merge pull request #4814 from scriptum/rpg-pcre-jitAndreas Rumpf2016-10-241-2/+7
|\ | | | | Enable JIT in PCRE to improve regular expressions performance
| * Enable JIT in PCRE to improve regular expressions performancePavel Roschin2016-09-231-2/+7
| |
* | EIO is called IOError nowAraq2016-09-281-1/+1
|/
* de-deprecate re.nimAndreas Rumpf2016-06-131-5/+6
|
* documentation build cleaned upAndreas Rumpf2016-05-311-1/+1
|
* udpated the compiler and tester to use getOrDefaultAraq2015-10-131-1/+3
|
* lib: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-3/+3
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* renamed writeln to writeLine in libpatrick dw2015-06-191-1/+1
|
* Revert "Base re off of nre"Flaviu Tamas2015-06-101-142/+235
| | | | This reverts commit dc60a51e1545d8c73bc9415d1045864b72cfda0b.
* Edit re and nre doc commentsFlaviu Tamas2015-06-071-1/+1
|
* Deprecate reFlaviu Tamas2015-06-071-2/+2
|
* Adjust re for nre's inclusive boundsFlaviu Tamas2015-06-071-1/+1
|
* Base re off of nreOleh Prypin2015-06-071-238/+142
|
* Fix comment in reKoala Zen2015-05-061-2/+2
|
* Merge pull request #2506 from BlaXpirit/update-pcreAndreas Rumpf2015-04-211-7/+7
|\ | | | | Update and improve PCRE wrapper
| * Fix deprecation warnings in reOleh Prypin2015-04-101-7/+7
| |
* | Merge pull request #2560 from BlaXpirit/re-nre-hintAndreas Rumpf2015-04-151-2/+5
|\ \ | | | | | | Add a hint about NRE library to 're' module
| * | Add a hint about NRE to 're' moduleOleh Prypin2015-04-141-2/+5
| |/
* / Deprecate constant regular expression stringsOleh Prypin2015-04-141-14/+20
|/
* Merge pull request #2502 from def-/pcreAndreas Rumpf2015-04-101-45/+46
|\ | | | | Fix infinite loop in re.findAll
| * Fix infinite loop in findAlldef2015-04-091-0/+1
| |
| * Clean up re module a bitdef2015-04-091-45/+45
| |
* | Adds test case to is isMainModule blockJoseph Turner2015-04-081-1/+6
| | | | | | | | Adds the test case that originally caused the bug, issue #2418.
* | Fixes matching error #2418Joseph Turner2015-04-081-5/+8
|/ | | | | | | | Fixes the split iterator, the main problem was with the incrementation of 'last'. Last was first incremented to the index of the first character after the match, but was then incremented again at the beginning of the while loop. This caused a problem if that character after the first match, also matched the regular expression.