Help

Regular expressions

Regular expression is a method of description of templates for searching the text and check of conformity of the text to a template.

From Wikipedia:
A regular expression is a sequence of characters that forms a search pattern, mainly for use in pattern matching with strings, or string matching, i.e. "find and replace"-like operations. The concept arose in the 1950s, when the American mathematician Stephen Kleene formalized the description of a regular language, and came into common use with the Unix text processing utilities ed, an editor, and grep (global regular expression print), a filter.

How regular expressions are used in SigChat

A majority of the main functions of SigChat service, such as Moderation of messages, Call for attention, System of creating chats, run with application of regular expressions.
For example, you can create a special pattern and all messages containing email before the publication go to moderation.

Frequently used regular expressions

Pattern Purpose
/.*/ Character set. (You can use in SigChat, if all messages are to be moderated)
/^[^[^.]]$/ Null string. (You can use in SigChat, if all messages are to be moderated)
/([a-z,0-9,_,\-,\.])+\@([a-z,0-9,_,\-])+(\.([a-z,0-9])+)+/ Check on presence Email in the text
/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/ Check on presence URL in the text
more patterns

Useful links

Testing of regular expressions

Call for attention

Callforattention is our registered invention that represents the automatic analysis of the information from the chats with the automatic notification about arrival information you need to the persons, mentioned by you. This invention is developed solely for convenience of site owners.

The idea is to let you to specify a pattern (regular expression), whereby a message will be displayed in a separate window “Call for attention” and you will get an email notification.

For example, to make the site owner to pay attention to all messages containing words “want, order, make order, price”.

List of emails for notification about call for attention

You can create a list of emails, on which confirmations of arrival of the messages calling for attention will be sent. If you require sending notifications to a few emails, just use comma to separate them.

Moderation of messages

By the same principle as in “Call for attention” you can create a special pattern whereby all messages containing email before the publication go to moderation.

Text of the message to the user, whose message is under moderating

You can type the text which a user will see if his message has been sent to moderation.

Users who have access to an administrative panel of the SigChat

You can create a list of emails of users, who will have access to an administrative panel. Email must be registered in the system, else it will be ignored.

System of creating chats

In SigChat you can create private chats for each page. It is realised by the system of creating chats. In SigChat the chat accessory to the page is defined by URL.

1) Pattern

You should specify a pattern (regular expression) in this cell. The chat with the settings specified in block of this pattern will be displayed on all pages with URLs that match the specified pattern.

2) Type

There are 2 available variants: a regular expression and character set in the drop-down menu.
Type “regular expression” examines the pattern as a regular expression.
Type “character set” examines the pattern as a set of characters, met in the string. In other words, the block will be appropriate if the character set, specified in the cell "pattern", is found in the URL.

3) Reaction

There are 2 available variants: private chat for each page and public chat for chosen pages in the drop-down menu “choose reaction”.
The algorithm is easier to explain with an example.
Suppose you specify a regular expression pattern /product/ and you have two pages with addresses that are appropriate under this pattern: www.domain.com/product1 и www.domain.com/product2.
If the response is “private chat for each page”, private chat will be formed for both pages - www.domain.com/product1 and www.domain.com/product2, that means there will be messages being sent from that pages in the chat.
If the response is “public chat for chosen pages”, public chat will be formed for both pages - www.domain.com/product1 and www.domain.com/product2 with the overall message history that means there will be messages being sent from any pages with URLs that match the specified pattern.

4) Style

Clicking on the cell "Style" you can specify styles for this pattern. All blocks of the chat can be customized to your taste, if you own the formal language of CSS (Cascading Style Sheets).
Remember save created styles separately for each block of the pattern. Button “Save styles” is under cells designer.

Priority

There may be a situation, when you have specified two different patterns, which will be treated the same page. For example, pages www.domain.com/product1 and www.domain.com/product2 appropriate under patterns /prod/ and /product/. In this case, the chat corresponding to the pattern block, which is located above the rest, will be displayed on these page. That means the more the block is closer to the top of the page the more its priority is higher.
Change order of blocks by Drag-and-Drop function.
Choose the language: English | Русский