Where do you test syntax of D regexp online?
Suliman via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Mar 9 07:28:57 PST 2017
On Thursday, 9 March 2017 at 15:22:00 UTC, rikki cattermole wrote:
> On 10/03/2017 4:17 AM, Suliman wrote:
>>> I would use dpaste and write a quick script but here is where
>>> I think
>>> your problem is:
>>>
>>> regex("/.*/g")
>>>
>>> It should be:
>>>
>>> regex(".*", "g")
>>>
>>> As per[0].
>>>
>>> [0] http://dlang.org/phobos/std_regex.html#.regex
>>
>> Sorry, but what regexp are you talking? There is nothing like:
>> `regex("/.*/g")` in my code...
>>
>
> Yes there was:
>
> auto bigCodeBlock = regex("/`{3}[\\s\\S]*?`{3}/g");
I still can't get it work in real code :(
More information about the Digitalmars-d-learn
mailing list