Can we use regular expression in Golang testable example Output comment?

Tung Pham

I have an example that performs some timing and output the result at the end. Since the result will never be the same, is there a way to use regular expression or something similar in the Output comment?

Something like below:

...
// Output:
// Time: \d*\(s\)
...

Thanks

Volker

Can we use regular expression in Golang testable example Output comment?

No.

This must match literally.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How could we use regular expression in GNUmake

Can we using regular expression in xpath value?

Can we put regular expression for a value in a DTD?

RSpec HtmlMatchers have_tag: can we use regular expression to match HTML attributes?

How can we convert regular expression to ANTLR 4 Expression

Python Regular Expression example

Python Regular Expression example

Why should we use re.purge() in python regular expression?

Can we create a regular expression that matches every founder in this list?

How can we write regular expression for strings with two periods

Can I use a Fold Expression in this example

In Jolt, can we loop through nested array and still use the index of outer array to form a single array output? Please refer to example:

Can use regular expression to forward mail in Mailgun?

Can I use a regular expression in querySelectorAll?

Can I use condition in regular expression in Perl?

Slash in regular expression in Golang

regular expression output is not same

No output for regular expression with grep

Regular expression for key value example

Can we use client credentials flow on regular Azure users?

can we use Expression Blend for Asp.net MVC applications

Why can't we use expression-bodied constructors?

Can we use one logic expression to compare multiple strings at once?

Can I use a variable storing a regular expression wherever a regular expression is expected?

How to use a regular expression for checking if comment is closed in javascript?

Can we use the output of one recursive query into another recursive query?

the use of "+" in sed regular expression

Use $Redact with a regular expression

Use regular expression to match "≈"