What regular expression pattern does the Firefox URL bar use?

I really solve the problem (search problem) using matching regex patten and other materials. I thought I would see how Google, Yahoo, Bing, Ask, etc. behave.

Given that Firefox, Chrome, Opera, and other browsers also have a URL bar or a search bar, I started trying different words and then characters.

In Firefox, I see many different results. Here are some screenshots -

^ Symbol - gives some random results.

^ symbol

$ Symbol - also gives random results. I also tried to add a line with this, it did not give any results.

Dollar symbol

() parentheses - when used, gives the correct results. It is considered a symbol for comparison, like a string.

parentheses

* Symbol . It also gave a set of results without matching the character itself. Not sure why these different results.

Star symbol

~ Symbol . It also gave a set of results without matching the character itself. Not sure why these different results.

Tilda's Symbol

I am interested to know why there is such a difference in behavior for a large number of characters, while other lines and / or characters work as expected.

-

@thanksd Not really a duplicate . This is about how string matching works. I already know this part. I clearly ask about symbols. How characters are counted for matching.

+4
source share
1 answer

, , , , .

Firefox ( ):

+1

Source: https://habr.com/ru/post/1620857/


All Articles