Google form RegEx for time - google-forms

I don't want to use the time field in Google Forms, and have tried to create a RexEx like this:
[\0-24]{2}:[\0-59]{2}
It accept "21:35", but rejects input like "07:35" og "17:35".
Any idea why it behave like this?

This is the RegEx:
[0-2]{1}[0-9]{1}:[0-5]{1}[0-9]{1}
Source: https://www.regextester.com

Related

How to change month descriptions on a DevExtreme Calendar?

I'm using the Calendar and DateBox components from DevExtreme.
My current language is set to pt-BR.
As shown in the image, the months descriptions are like "jan." but I'd like it to be "Jan".
Looking for some samples/demos on the internet (example1 or example2), the description as "Jan" is the default behaviour.
The code I'm using (the simplest):
Html.DevExtreme().DateBox()
.Type(DateBoxType.Date)
As a result of this, I'm trying to use DisplayFormat as "MMM/yyyy" and it makes the description like "jan./2021" and not "Jan/2021" as I'd like to.
Is there a way I can change this behaviour?
Try with "MM/yyyy" instead of "MMM/yyyy", it should work

How can sort data datewise in Appmekar?

In Google Appmekar i need to sort data in datewise so i used below line but didn't work.
myDataSource1.query.sorting.inwarddate._ascending();
anyone have idea about appmekar?
That should work, except that each time you want to sort the datasource, you have to load it. Hence, it should look like this:
myDatasource1.query.sorting.inwarddate._ascending();
myDatasource1.load();
You should take a look at the official documentation for more details.

Combining similar URLs in Google Analytics (with a twist)

I have a lot of similar URLs that I would like to merge in Google Analytics. I've managed to merge a lot of them already. However I've now run into a bit of a problem.
I have URLs that look something like this;
article/4567/edit
article/87478548/edit
article/82984786/add
article/8374/add
How would I go about merging these URLs so that they display as;
article/edit
article/add
Any help is greatly appreciated.
EDIT: I also need to be able to have GA display every article in one line on the table called "article/" regardless of any ID that is after it. I don't want the table to look like:
article/12342 1,000 views
article/7465890 900 views
I need it to display as:
article/ 1,900 views
You can create an Advanced filter that combines the relevant parts for you:
The output would be /article/edit or /article/add, with everything and anything between those removed.
EDIT:
If you just want everything, regardless of /edit, /add, /12341/edit, /7305/add, /whatever/edit, to show up just as /article, then you can just change your filter like this:
Field A: Request URI = (/article)/.*
Output to: Request URI = $A1
This will convert the following examples:
/article/123/edit -> /article
/article/2345/add -> /article
/article/anything -> /article
From this Combining similar URLs in Google Analytics you can find out how to do it. You need to use a regex. Something like this should work (did not test it).
(article\/)[0-9]*\/(edit|add)

Filtering URL - Google Analytic

I have the following URLs :
example.com/Style/mens/
example.com/deliver/Style/47968/
example.com/49549/Style/
My target is:
example.com/Style/mens/
I need to filter /Style/ only at the beginning and not in any other place in the URL.
What is the Regex for this issue?
Try
^example\.com\/Style.*
This will filter anything like
example.com/Style
example.com/Style/something
example.com/Style/something/nothing

How to use the | (or) operator in google analytics filter?

I have a filter I want to apply to my google analytics chart embedded in my site. I want to filter ga:pagePathLevel2 to be one of a list of numbers;
Ideally I want it to be something like
'filters' : 'ga:pagePathLevel2==/6|/7|/8',
but that doesnt work, My authorization button doesnt show up after that so apparently something doesn't work
You can use a the =~ syntax to set a regular expression filter if you want to match a URL part in several possible forms.
If your case, you could do something like:
'filters': 'ga:pagePathLevel2=~^/(6|7|8)'
On an unrelated note: if your auth button isn't showing up at all, it's almost certainly because you have a syntax error and has nothing to do with the filter syntax. If you open up the developer console, you should see the error being logged.

Resources