<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:08:46 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CDRIVER-206] using mongo-c-driver can not use regular expressions containing forward slash (/)</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-206</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;I am trying to use the C-API for mongo DB.  I want to find records with a name matching a regular expression containing slashes &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/check.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;.  If I run the mongo command line I get 40 results for the query:&lt;br/&gt;
 db.test_006.find(&lt;/p&gt;
{&apos;name&apos;:/^\/TEST::TOP:NEWSTAT\/_data_[0-9]*/}
&lt;p&gt;)&lt;br/&gt;
which is correct. When I try to code this in C I can not get it to match. &lt;br/&gt;
using:&lt;br/&gt;
bson_append_regex( &amp;amp;query, &quot;name&quot;,&quot;/TEST::TOP:NEWSTAT/&quot; , &quot;&quot; )&lt;br/&gt;
I find all the records and more.&lt;br/&gt;
All combinations of &lt;br class=&quot;atl-forced-newline&quot; /&gt;/  or even &lt;span class=&quot;error&quot;&gt;&amp;#91;/&amp;#93;&lt;/span&gt;  or &lt;a href=&quot;file:///&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;\\/&lt;/a&gt;  do not find any records.  I also tried &lt;br class=&quot;atl-forced-newline&quot; /&gt;x2F.&lt;/p&gt;</description>
                <environment>Redhat linux</environment>
        <key id="71641">CDRIVER-206</key>
            <summary>using mongo-c-driver can not use regular expressions containing forward slash (/)</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="christian.hergert@10gen.com">Christian Hergert</assignee>
                                    <reporter username="josh.stillerman@gmail.com">Joshua Stillerman</reporter>
                        <labels>
                            <label>query</label>
                    </labels>
                <created>Fri, 12 Apr 2013 15:58:45 +0000</created>
                <updated>Tue, 12 Nov 2013 23:51:50 +0000</updated>
                            <resolved>Tue, 12 Nov 2013 23:51:50 +0000</resolved>
                                    <version>0.7</version>
                                    <fixVersion>0.90.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="455341" author="christian.hergert@10gen.com" created="Tue, 12 Nov 2013 23:51:16 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;You do not need to include the forward-slash when building a regex.&lt;/p&gt;

&lt;p&gt;I&apos;ve added a test for this using the new C driver here&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt; which you can use as an example.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt; &lt;a href=&quot;https://github.com/chergert/libmongoc/blob/211e987ba0c2771199a1c01fc486a57966daa509/tests/test-mongoc-collection.c#L55&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/chergert/libmongoc/blob/211e987ba0c2771199a1c01fc486a57966daa509/tests/test-mongoc-collection.c#L55&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrmmlz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>45741</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="60">Sprint 1</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>