Where do you test syntax of D regexp online?

rikki cattermole via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Mar 9 07:22:00 PST 2017


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");


More information about the Digitalmars-d-learn mailing list