# Filtering doctests issue

**URL:** https://discourse.julialang.org/t/filtering-doctests-issue/126070
**Category:** General Usage
**Created:** [February 19, 2025, 12:32pm UTC](https://discourse.julialang.org/t/filtering-doctests-issue/126070 "2025-02-19T12:32:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [February 19, 2025, 12:32pm UTC](https://discourse.julialang.org/t/filtering-doctests-issue/126070/1 "2025-02-19T12:32:32Z")

</div>

I’m trying to filter in a `jldoctest` the lines of `[ Info: ` blocks. I’m trying this, within a `docstring` of a function:

````julia
```jldoctest ;filter = r"^\\s*\\[ Info:.*"m => ""

````

but that is not filtering. The corresponding regexp, without escaping the `\`, works fine:

```julia-repl
julia> str = """
        
        [ Info: Failed downloading from `download` PDB repository, trying `view` repository ...
           Vector{Atom{Nothing}} with 1870 atoms with fields:
           index name resname chain resnum residue x y z occup beta model segname index_pdb
               1 N SER A 225 1 45.228 84.358 70.638 1.00 67.05 1 1
       """;

julia> println(replace(str, r"^\s*\[ Info:.*"m => ""))

    Vector{Atom{Nothing}} with 1870 atoms with fields:
    index name resname chain resnum residue x y z occup beta model segname index_pdb
        1 N SER A 225 1 45.228 84.358 70.638 1.00 67.05 1 1

```

what am I missing?
