CN105916127A - Method, device and server for obtaining user traffic information - Google Patents

Method, device and server for obtaining user traffic information Download PDF

Info

Publication number
CN105916127A
CN105916127A CN201610483695.2A CN201610483695A CN105916127A CN 105916127 A CN105916127 A CN 105916127A CN 201610483695 A CN201610483695 A CN 201610483695A CN 105916127 A CN105916127 A CN 105916127A
Authority
CN
China
Prior art keywords
flow
regular expression
short message
data
flows
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610483695.2A
Other languages
Chinese (zh)
Inventor
马璇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610483695.2A priority Critical patent/CN105916127A/en
Publication of CN105916127A publication Critical patent/CN105916127A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a method, device and server for obtaining user traffic information. The method comprises following steps of obtaining a short message which is sent by an operator and is related to traffic information; extracting text information of the short message; regularly matching the text information of the short message with regular expressions for capturing traffic data; establishing a rule matching with the text information of the short message based on the preset regular expression if there is no matched traffic data; determining traffic keywords related to the traffic data; and establishing a new regular expression according to the traffic keywords. According to the method, the device and the server, under the condition that the short message does not match with the existing regular expressions, the new regular expression matching with the short message can be automatically compiled; the regular expressions can be automatically compiled corresponding to some short messages with special templates; the traffic information in the short message can be obtained timely; the error production possibility is reduced; the capturing efficiency is high; and the use experience of the user can be improved.

Description

For obtaining the method for customer flow information, device and server
Technical field
The present invention relates to traffic monitoring technical field, particularly relate to a kind of for obtaining customer flow information Method, device and server.
Background technology
At present, along with popularizing of mobile phone, mobile phone is increasingly becoming communication tool indispensable in people's life. Short message service, because its reason such as convenient, fast and cheap, is generally connect by vast Mobile Phone Consumption person It is subject to and is widely used.Mobile phone flow refers to the data on flows that surfing Internet with cell phone produces, with mobile phone open software or When carrying out internetwork operation, can be with the swapping data of server, mobile phone flow refers to the big of these data Little.Mobile phone flow package mainly has telecommunications, movement, 3 operators of UNICOM, due to current flow set Meal price is cheap, the flow price especially used outside beyond flow package costly, therefore, User wants to obtain flow information easily and be monitored flow.
At present, mobile phone can be installed software application and realize the function of traffic monitoring.Such as, 360 are used Mobile phone assistant, arranges moon flow and deadline, then arranges start self-starting, the flow that every day uses Will show.The background server of software application need that the operator sent from operator sends with The note that flow information is relevant is extracted the information relevant to flow, at present, generally uses regular expression Mode from note, extract information, but have multiple owing to operator sends the form of note, and along with The situations such as the upgrading of business system or transformation and change, therefore, the backstage personnel of software application need and Regular expression new for Shi Tianjia is to adapt to the change of messaging format, and this work at present is mainly by artificial Completing, not only workload relatively greatly but also tends not to increase new regular expression in time, it is impossible to from note Middle extraction flow information is also sent to user, mostly just increases canonical table after receiving user feedback or complaining newly Reach formula, affect the use impression of user.
Summary of the invention
In view of this, the technical problem that the invention solves the problems that is to provide a kind of for obtaining customer flow The method of information, device and server.
A kind of method for obtaining customer flow information, including: obtain believing with flow of operator's transmission Manner of breathing close note and extract short message text information;By described short message text information be used for capturing flow number According to regular expression carry out canonical coupling;If the data on flows of not matching, then based on default canonical Formula is set up regular and described short message text information and is mated, and determines that the flow relevant to data on flows is crucial Word also sets up new regular expression according to described flow key word, and by described new regular expression Capture the data on flows in described short message text information.
According to one embodiment of present invention, further, rule and institute are set up based on default canonical formula State short message text information to carry out mating, determining the flow key word relevant to data on flows and according to described stream Amount key word is set up new regular expression and is included: by short with described respectively for default multiple rule key words Letter text message mates, if the match is successful, then using this rule key word as flow key word also Record its position occurred in described short message text information and order;According to described with flow key word and Its position in described short message text information and order set up described new regular expression.
According to one embodiment of present invention, further, including: will according to default regular separator Described short message text information is divided into multiple sub-text message by row;By crucial for default the plurality of rule Word mates with the plurality of sub-text message respectively, if the match is successful, then by this rule key word As flow key word;Wherein, the text between described flow key word and described sub-text message afterbody Information is the data on flows that it is relevant;By described flow key word and described rule separator based on default Regular expression rule generates sub-regular expression;Wherein, described data on flows is replaced with corresponding unit Character and operator group;According to the segmentation order of the plurality of sub-text message and according to the canonical table preset Reach formula rule to be connected by multiple described sub-regular expressions, generate described new regular expression.
According to one embodiment of present invention, further, described rule separator includes: branch, funny Number, fullstop, space, newline.
According to one embodiment of present invention, further, described data on flows includes: network traffics, Telephone expenses;Described rule key word includes: domestic flow, inside the province flow, call remaining time, residual stream Amount, set meal, telephone expenses.
According to one embodiment of present invention, further, including: configuration regular expression template, institute State the multiple regular expressions being provided with in regular expression template for capturing data on flows;According to described The preset order of multiple regular expressions, chooses regular expression from the plurality of regular expression successively;
Described short message text information is mated with the regular expression chosen, if matching flow Data, then capture data on flows from described short message text information, and terminate from the plurality of regular expressions Formula is chosen regular expression and matching operation.
According to one embodiment of present invention, further, including: the plurality of regular expression is set Priority orders, wherein, the regular expression that the plurality of regular expression medium priority is the highest Join condition the most.
According to one embodiment of present invention, further, including: arrange flow notice template;According to Described data on flows is generated flow notification message by described flow notice template;By described flow notification message It is sent to user.
A kind of device for obtaining customer flow information, including: flow note acquisition module, it is used for obtaining Take the note relevant to flow information of operator's transmission and extract short message text information;Canonical formula coupling mould Block, for carrying out canonical by described short message text information and the regular expression being used for capturing data on flows Join;Canonical formula sets up module, if for not matching data on flows, then built based on default canonical formula Legislate then mates with described short message text information, determines the flow key word relevant to data on flows also New regular expression is set up according to described flow key word;Wherein, by described new regular expression Capture the data on flows in described short message text information.
A kind of server for obtaining customer flow, including as above for obtaining customer flow letter The device of breath.
The present invention for obtaining the method for customer flow information, device and server, it is possible to note with In the case of existing regular expression is unmatched, automatically write the new regular expressions matched with note Formula, can obtain the flow information in note in time and capture the efficiency height of flow information.
Aspect and advantage that the present invention adds will part be given in the following description, and these are by from following Description becomes obvious, or recognized by the practice of the present invention.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that under, Accompanying drawing during face describes is only some embodiments of the present invention, for those of ordinary skill in the art, On the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings:
Fig. 1 is the flow process of an embodiment of the method for obtaining customer flow information according to the present invention Figure;
Fig. 2 is the module of an embodiment of the device for obtaining customer flow information according to the present invention Schematic diagram;
Fig. 3 is the modular structure schematic diagram of an embodiment of the canonical formula matching module according to the present invention;
Fig. 4 is the modular structure schematic diagram that the canonical formula according to the present invention sets up an embodiment of module.
Detailed description of the invention
Embodiments of the invention are described below in detail, and the example of described embodiment is shown in the drawings, wherein The most same or similar label represents same or similar element or has same or like function Element.The embodiment described below with reference to accompanying drawing is exemplary, is only used for explaining the present invention, and It is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative used herein " ", " one ", " described " and " being somebody's turn to do " may also comprise plural form.It is to be further understood that this The wording used in the description of invention " include " referring to existing described feature, integer, step, operation, Element and/or assembly, but it is not excluded that existence or add other features one or more, integer, step, Operation, element, assembly and/or their group.It should be understood that when we claim element to be " connected " or " coupling Connect " to another element time, it can be directly connected or coupled to other elements, or can also exist Between element.Additionally, " connection " used herein or " coupling " can include wireless connections or wireless coupling Connect.Wording "and/or" used herein includes that what one or more was associated lists the whole of item Or any cell combines with whole.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (bag Include technical term and scientific terminology), have with the those of ordinary skill in art of the present invention is general Understand identical meaning.Should also be understood that those terms defined in such as general dictionary, it should It is understood to that there is the meaning consistent with the meaning in the context of prior art, and unless as here one Sample, by specific definitions, otherwise will not be explained by idealization or the most formal implication.
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal unit " Both having included the equipment of wireless signal receiver, it only possesses the setting of wireless signal receiver of non-emissive ability Standby, include again the equipment receiving and launching hardware, it has and can perform double on bidirectional communication link To reception and the equipment of transmitting hardware of communication.This equipment may include that honeycomb or other communication equipments, It has single line display or multi-line display or the honeycomb not having multi-line display or other communication Equipment;PCS (Personal Communications Service, PCS Personal Communications System), it is permissible Combine voice, data process, fax and/or its communication ability;PDA(Personal Digital Ass istant, personal digital assistant), it can include radio frequency receiver, pager, the Internet/interior Internet interview, web browser, notepad, calendar and/or GPS (Global Positioning System, Global positioning system) receptor;Conventional laptop and/or palmtop computer or other equipment, it has And/or include the conventional laptop of radio frequency receiver and/or palmtop computer or other equipment.Here institute Use " terminal ", " terminal unit " can be portable, can transport, be arranged on the vehicles (boat Sky, sea-freight and/or land) in, or be suitable for and/or be configured at local runtime, and/or to divide Cloth form, any other position operating in the earth and/or space is run." terminal " used herein above, " terminal unit " can also is that communication terminal, access terminals, music/video playback terminal, the most permissible Be PDA, MID (Mobile Internet Device, mobile internet device) and/or have music/ The mobile phone of video playback capability, it is also possible to be the equipment such as intelligent television, Set Top Box.
Those skilled in the art of the present technique are appreciated that remote network devices used herein above, it include but It is not limited to computer, network host, single network server, multiple webserver collection or multiple service The cloud that device is constituted.Here, cloud is by a large amount of computers based on cloud computing (Cloud Computing) or net Network server is constituted, and wherein, cloud computing is the one of Distributed Calculation, by the loosely-coupled calculating of a group One super virtual machine of machine collection composition.In embodiments of the invention, remote network devices, terminal Can realize communicating by any communication mode between equipment with WNS server, include but not limited to, based on The mobile communication of 3GPP, LTE, WIMAX, based on TCP/IP, udp protocol computer network communication with And based on bluetooth, the low coverage wireless transmission method of infrared transmission standard.
It will be appreciated by those skilled in the art that " application ", " application program " alleged by the present invention, " answer With software " and the concept of similar statement, be those skilled in the art known same concept, refer to by The instruction of series of computation machine and the computer software being suitable to electronics operation of the organic structure of related data resource. Unless specified, this name itself is not by programming language kind, rank, the most not by its operation of relying Operating system or platform limited.In the nature of things, this genus is not the most by any type of terminal institute Limit.
Fig. 1 is the flow process of an embodiment of the method for obtaining customer flow information according to the present invention Figure, as shown in Figure 1:
Step 101, obtains the note relevant to flow information of operator's transmission and extracts short message text letter Breath.
Step 102, carries out canonical by short message text information and the regular expression being used for capturing data on flows Coupling, if the data on flows of matching, then captures data on flows from short message content.
Step 103, if the data on flows of not matching, then sets up regular and short based on default canonical formula Letter text message mates, and determines the flow key word relevant to data on flows and according to flow key word Set up new regular expression, and capture the flow number in short message text information by new regular expression According to.
Regular expression, also known as normal representation method, conventional expressing method, regular expression uses single character String describes, mates a series of character string meeting certain syntactic rule.Regular expression predefined Some good specific characters and the combination of these specific characters, form one " rule character string ", this Individual " rule character string " is used for expressing a kind of filter logic to character string.
Regular expression is used to capture the data on flows in the note relevant to flow information that operator sends. Such as, the note that such as operator sends is " residual flow 18,000,000;Use flow 15,000,000 ".Existing Regular expression be " residual flow (.*);Use flow (.*), use this regular expression then Outflow data 18,000,000 and 15,000,000 can be captured from note.
If the messaging format of operator there occurs change, such as, the note that operator sends is " to use Flow 15,000,000;Residual flow 18,000,000 ", use above-mentioned existing regular expression then cannot match stream Amount data, then need to automatically generate new regular expression.
Setting up regular key word in rule in default canonical formula, rule key word refers to and flow information The key word being associated.The rule being provided with regular expression in rule is set up, it is possible to set up in canonical formula Grammatical the regular expression comprising key word combine.Rule key word can be that management staff is defeated The key word entered, or the formation rule key word character by the entry in the method collection note of machine learning Allusion quotation.
Such as, rule key word includes: " residual flow ", " use flow " etc..By rule key word After mating with short message text information, determine that the flow key word relevant to data on flows is for " residual stream Amount ", " use flow ".New canonical is set up according to flow key word " residual flow ", " use flow " Expression formula, can set up a new regular expression and " use flow (.*);Residual flow (.*) ", Two new regular expressions " residual flow (.*) can also be set up;" and " using flow (.*) ", The data on flows 15,000,000 and 18,000,000 in short message text information can be captured by new regular expression.
By in above-described embodiment for the method that obtains customer flow information, note with existing just In the case of then expression formula is unmatched, can automatically write the new regular expression matched with note, Automatically regular expression is write, it is possible to obtain short in time by the note corresponding to some with specific template Flow information in letter, improves the use impression of user.
Automatically write opportunity of new regular expression can be judge existing regular expression can not When joining note, or, set the timing statistics section of every day, the note of every day taken out from daily record, By the SIM duplicate removal of note.
For example, it is possible to it is relevant to flow information to determine whether that operator sends by the key word preset Note, when short message text includes " flow ", " telephone expenses " etc., the SIM of recipient based on note Card number carries out duplicate removal process to the note through screening.Judge whether existing regular expression can not mate Existing note, if it is, set up new regular expression according to default rule.
In one embodiment, default multiple rule key words are carried out with short message text information respectively Join, if the match is successful, then this rule key word as flow key word and is recorded it at short message text The position occurred in information and order.According to flow key word and its position in short message text information New regular expression is set up with order.
Such as, it is impossible to the short message content of coupling is that " your service condition is as follows, domestic flow 30,000,000, saves Interior flow 20,000,000, converses 120 minutes, remains telephone expenses 12 yuan ".By default regular key word and note Coupling, by the regular key word " domestic flow " that the match is successful, " flow inside the province ", " call ", " remains Telephone expenses " as flow key word, and record " domestic flow ", " flow inside the province ", " call ", " residue Telephone expenses " in short message text information occur position and order.
Owing to the execution efficiency of a regular expression is high, flow key word and its according to determining are in note Position in text message and order set up a new regular expression, and " your service condition is as follows, state Interior flow (.*), inside the province flow (.*), converse (.*), telephone expenses residue (.*) ", by this just Then expression formula can capture flow information 30,000,000,20,000,000,120 minutes, 12 yuan.For the stream captured When amount information needs to calculate, flow information can be removed character and word etc., and be converted to integer type etc..
In one embodiment, the method setting up a regular expression has multiple, such as, according to presetting Regular separator by short message text information by row be divided into multiple sub-text message, by default multiple rule Then key word mates with multiple sub-text messages respectively, if the match is successful, then by crucial for this rule Word is as flow key word.Text message between flow key word to sub-text message afterbody is that it is relevant Data on flows.
Flow key word and rule separator are generated sub-regular expressions based on default regular expression rule Formula, replaces with corresponding metacharacter and operator group by data on flows.Dividing according to multiple sub-text messages Cut order and according to the regular expression rule preset will many sub-regular expressions connections, generate new just Then expression formula.
Such as, it is impossible to the short message content of coupling is that " your service condition is as follows, domestic flow 30,000,000, saves Interior flow 20,000,000, converses 120 minutes, and telephone expenses remain 12 yuan ".According to default regular separator ", " By short message text information by row be divided into 5 sub-text messages, be respectively " your service condition is as follows ", " domestic flow 30,000,000 ", " flow 20,000,000 inside the province ", " conversing 120 minutes ", " telephone expenses remain 12 yuan ".
Default multiple rule key words are mated, if mated into 5 sub-text messages respectively Merit, then using this rule key word as flow key word.Such as, for sub-text message " domestic flow 30000000 ", using the regular key word " domestic flow " that the match is successful as flow key word, flow is crucial Text message between word " domestic flow " to this sub-text message afterbody is the data on flows that it is relevant, It is 30,000,000.
" domestic flow " and rule separator ", " are just being generated son based on default regular expression rule Then expression formula " domestic flow (.*), ".According to the segmentation order of 5 sub-text messages and according to pre- If regular expression rule many sub-regular expressions are connected, generate a new regular expression, " your service condition is as follows, domestic flow (.*), inside the province flow (.*), converses (.*), words Take residue (.*) ".
In one embodiment, rule separator can be branch, comma, fullstop, space, newline One or more in Deng.Data on flows includes: network traffics, telephone expenses etc..Rule key word includes: Domestic flow, inside the province flow, call remaining time, residual flow, set meal, telephone expenses etc..
When carrying out data on flows and extracting, regular expression template can be configured, in regular expression template In be provided with the multiple regular expressions for capturing data on flows, according to multiple regular expressions preset Sequentially, from multiple regular expressions, regular expression is chosen successively.
Short message text information is mated with the regular expression chosen, if the data on flows of matching, From short message text information, then capture data on flows, and terminate choosing canonical table from multiple regular expressions Reach formula and matching operation.The priority orders of multiple regular expression, multiple regular expressions can be set The matching condition of the regular expression that formula medium priority is the highest is the most.
Arranging flow notice template, flow notice template defines the type of data on flows, form etc..Root According to flow notice template, data on flows is generated flow notification message, flow notification message is sent to user. Such as, the flow notification message of generation be " you current flow service condition are: domestic flow 30,000,000, Flow 20,000,000 inside the province ".Thering is provided the interface setting up rule for configuring canonical formula, manager can pass through this Interface configurations canonical formula set up rule, canonical formula set up rule include rule key word, rule separator, Canonical formula create-rule etc..
As shown in Figures 2 to 4, the present invention provides a kind of device for obtaining customer flow information.Flow Note acquisition module 21 obtains the note relevant to flow information of operator's transmission and extracts short message text Information.Canonical formula matching module 22 by short message text information be used for capturing the regular expression of data on flows Carry out canonical coupling, if the data on flows of not matching, then canonical formula set up module 23 based on default just Then formula foundation rule is mated with short message text information, determines the flow key word relevant to data on flows And set up new regular expression according to flow key word, capture short message text by new regular expression Data on flows in information.
Flow note acquisition module 21 batch obtains the note relevant to flow information that operator sends, base Recipient's information in note carries out duplicate removal process to the note through screening.Canonical formula sets up module 23 Including: key word acquiring unit 231 and expression formula signal generating unit 232.Key word acquiring unit 231 will The multiple rule key words preset mate with short message text information respectively, if the match is successful, then will This rule key word as flow key word and records its position occurred in short message text information and order. Expression formula signal generating unit 232 according to flow key word and its position in short message text information and order Set up new regular expression.
In one embodiment, key word acquiring unit 231 is civilian by note according to default regular separator This information is divided into multiple sub-text message by row, by default multiple rule key words respectively with many height Text message mates, if the match is successful, then using this rule key word as flow key word;Its In, the text message between flow key word to sub-text message afterbody is the data on flows that it is relevant.
Expression formula signal generating unit 232 by flow key word and rule separator based on default regular expression Rule generates sub-regular expression;Wherein, data on flows is replaced with corresponding metacharacter and operator group, According to multiple sub-text messages segmentation order and will many individual sub-canonicals according to the regular expression rule preset Expression formula connects, and generates new regular expression.
Canonical formula matching module 22 includes: canonical formula template configuration unit 221 and data on flows placement unit 222.Canonical formula template configuration unit 221 configures regular expression template, arranges in regular expression template There are the multiple regular expressions for capturing data on flows, according to the preset order of multiple regular expressions, Regular expression is chosen successively from multiple regular expressions.
Short message text information is mated by data on flows placement unit 222 with the regular expression chosen, If the data on flows of matching, then from short message text information capture data on flows, and terminate from multiple just Expression formula is then chosen regular expression and matching operation.Canonical formula template configuration unit 221 arranges many The priority orders of individual regular expression, wherein, the canonical table that multiple regular expression medium priorities are the highest The matching condition reaching formula is the most.Traffic messages sending module 24 arranges flow notice template, leads to according to flow Know that data on flows is generated flow notification message by template, flow notification message is sent to user.Rule is joined Put module 25 and the interface setting up rule for configuring canonical formula is provided.
In one embodiment, the present invention provides a kind of server for obtaining customer flow information, bag Include the device for obtaining customer flow information as above.
Above-described embodiment provides for obtaining the method for customer flow information, device and server, In the case of note and existing regular expression are the most unmatched, it is possible to automatically write and match with note New regular expression, can correspond to some notes with specific template and automatically writes regular expression, The flow information in note can be obtained in time, reduce the probability that mistake occurs, and it is high to capture efficiency, The use impression of user can be improved.
Embodiments provide techniques below scheme:
1, a kind of method for obtaining customer flow information, including:
Obtain the note relevant to flow information of operator's transmission and extract short message text information;
With the regular expression being used for capturing data on flows, described short message text information is carried out canonical mate;
If the data on flows of not matching, then set up regular and described short message text based on default canonical formula Information is mated, and determines the flow key word relevant to data on flows and builds according to described flow key word Vertical new regular expression, and captured in described short message text information by described new regular expression Data on flows.
2, the method as described in 1, sets up regular and described short message text information based on default canonical formula and enters Row mates, determines the flow key word relevant to data on flows and set up new according to described flow key word Regular expression includes:
Default multiple rule key words are mated with described short message text information respectively, if coupling Success, then as flow key word using this rule key word and record it and go out in described short message text information Existing position and order;
According to described with flow key word with its position in described short message text information and order set up institute State new regular expression.
3, the method as described in 2, including:
According to default regular separator, described short message text information is divided into multiple sub-text message by row;
Default the plurality of rule key word is mated with the plurality of sub-text message respectively, as The match is successful for fruit, then using this rule key word as flow key word;Wherein, described flow key word with Text message between described sub-text message afterbody is the data on flows that it is relevant;
Described flow key word and described rule separator are generated son based on default regular expression rule Regular expression;Wherein, described data on flows is replaced with corresponding metacharacter and operator group;
The regular expression rule preset according to segmentation order the basis of the plurality of sub-text message will be many Individual described sub-regular expression connects, and generates described new regular expression.
4, the method as described in 3,
Described rule separator includes: branch, comma, fullstop, space, newline.
5, the method as described in 3,
Described data on flows includes: network traffics, telephone expenses;
Described rule key word include: domestic flow, inside the province flow, call remaining time, residual flow, Set meal, telephone expenses.
6, the method as described in 1, including:
Configuration regular expression template, is provided with for capturing data on flows in described regular expression template Multiple regular expressions;
According to the preset order of the plurality of regular expression, select successively from the plurality of regular expression Take regular expression;
Described short message text information is mated with the regular expression chosen, if matching flow Data, then capture data on flows from described short message text information, and terminate from the plurality of regular expressions Formula is chosen regular expression and matching operation.
7, the method as described in 6, including:
The priority orders of the plurality of regular expression is set, wherein, in the plurality of regular expression The matching condition of the regular expression that priority is the highest is the most.
8, the method as described in 1, including:
Flow notice template is set;
According to described flow notice template, described data on flows is generated flow notification message;
Described flow notification message is sent to user.
9, the method as described in 1, including:
The interface setting up rule for configuring described canonical formula is provided.
10, the method as described in 1, the note relevant to flow information obtaining operator's transmission includes:
Batch obtains the note relevant to flow information that operator sends;
Recipient's information based on note carries out duplicate removal process to described note.
11, a kind of device for obtaining customer flow information, including:
Flow note acquisition module, for obtaining the note relevant to flow information of operator's transmission and carrying Take short message text information;
Canonical formula matching module, for by described short message text information be used for capturing the canonical of data on flows Expression formula carries out canonical coupling;
Canonical formula sets up module, if for not matching data on flows, then built based on default canonical formula Legislate then mates with described short message text information, determines the flow key word relevant to data on flows also New regular expression is set up according to described flow key word;
Wherein, described canonical formula matching module captures described short message text by described new regular expression Data on flows in information.
12, the device as described in 11,
Described canonical formula sets up module, including:
Key word acquiring unit, for believing default multiple rule key words with described short message text respectively Breath mate, if the match is successful, then using this rule key word as flow key word and record its The position occurred in described short message text information and order;
Expression formula signal generating unit, is used for according to described and flow key word and it is in described short message text information In position and order set up described new regular expression.
13, the device as described in 12, described key word acquiring unit, for according to the rule separation preset Accord with and described short message text information is divided into multiple sub-text message by row;By default the plurality of rule Key word mates with the plurality of sub-text message respectively, if the match is successful, then this rule is closed Keyword is as flow key word;Wherein, between described flow key word and described sub-text message afterbody Text message is the data on flows that it is relevant;
Described expression formula signal generating unit, for by described flow key word and described rule separator based in advance If regular expression rule generate sub-regular expression;Wherein, described data on flows is replaced with accordingly Metacharacter and operator group;According to the segmentation order of the plurality of sub-text message and according to just presetting Then multiple described sub-regular expressions are connected by expression formula rule, generate described new regular expression.
14, the device as described in 13, described rule separator include: branch, comma, fullstop, space, Newline.
15, the device as described in 13,
Described data on flows includes: network traffics, telephone expenses;
Described rule key word include: domestic flow, inside the province flow, call remaining time, residual flow, Set meal, telephone expenses.
16, the device as described in 1, including:
Described canonical formula matching module, including:
Canonical formula template configuration unit, is used for configuring regular expression template, described regular expression template In be provided with the multiple regular expressions for capturing data on flows;According to the plurality of regular expression Preset order, chooses regular expression from the plurality of regular expression successively;
Data on flows placement unit, for entering described short message text information with the regular expression chosen Row coupling, if the data on flows of matching, then captures data on flows from described short message text information, and Terminate from the plurality of regular expression, choose regular expression and matching operation.
17, the device as described in 16, including:
Described canonical formula template configuration unit, for arranging the priority orders of the plurality of regular expression, Wherein, the matching condition of the regular expression that the plurality of regular expression medium priority is the highest is the most.
18, the device as described in 11, including:
Traffic messages sending module, is used for arranging flow notice template, will according to described flow notice template Described data on flows generates flow notification message, and described flow notification message is sent to user.
19, the device as described in 11, including:
Rule configuration module, for providing the interface setting up rule for configuring described canonical formula.
20, the device as described in 11, including:
Described flow note acquisition module, for obtaining the relevant to flow information of operator's transmission in batches Note, recipient's information based on note carries out duplicate removal process to described note.
21, a kind of server for obtaining customer flow information,
Including the device for obtaining customer flow information as described in 11 to 20 any one.
The above is only the some embodiments of the present invention, it is noted that general for the art For logical technical staff, under the premise without departing from the principles of the invention, it is also possible to make some improvement and profit Decorations, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (10)

1. the method being used for obtaining customer flow information, it is characterised in that including:
Obtain the note relevant to flow information of operator's transmission and extract short message text information;
With the regular expression being used for capturing data on flows, described short message text information is carried out canonical mate;
If the data on flows of not matching, then set up regular and described short message text based on default canonical formula Information is mated, and determines the flow key word relevant to data on flows and builds according to described flow key word Vertical new regular expression, and captured in described short message text information by described new regular expression Data on flows.
2. the method for claim 1, it is characterised in that set up rule based on default canonical formula Carry out to described short message text information mating, determining the flow key word relevant with data on flows and according to institute State flow key word to set up new regular expression and include:
Default multiple rule key words are mated with described short message text information respectively, if coupling Success, then as flow key word using this rule key word and record it and go out in described short message text information Existing position and order;
According to described with flow key word with its position in described short message text information and order set up institute State new regular expression.
3. method as claimed in claim 2, it is characterised in that including:
According to default regular separator, described short message text information is divided into multiple sub-text message by row;
Default the plurality of rule key word is mated with the plurality of sub-text message respectively, as The match is successful for fruit, then using this rule key word as flow key word;Wherein, described flow key word with Text message between described sub-text message afterbody is the data on flows that it is relevant;
Described flow key word and described rule separator are generated son based on default regular expression rule Regular expression;Wherein, described data on flows is replaced with corresponding metacharacter and operator group;
The regular expression rule preset according to segmentation order the basis of the plurality of sub-text message will be many Individual described sub-regular expression connects, and generates described new regular expression.
4. method as claimed in claim 3, it is characterised in that:
Described rule separator includes: branch, comma, fullstop, space, newline.
5. method as claimed in claim 3, it is characterised in that:
Described data on flows includes: network traffics, telephone expenses;
Described rule key word include: domestic flow, inside the province flow, call remaining time, residual flow, Set meal, telephone expenses.
6. the method for claim 1, it is characterised in that including:
Configuration regular expression template, is provided with for capturing data on flows in described regular expression template Multiple regular expressions;
According to the preset order of the plurality of regular expression, select successively from the plurality of regular expression Take regular expression;
Described short message text information is mated with the regular expression chosen, if matching flow Data, then capture data on flows from described short message text information, and terminate from the plurality of regular expressions Formula is chosen regular expression and matching operation.
7. method as claimed in claim 6, it is characterised in that including:
The priority orders of the plurality of regular expression is set, wherein, in the plurality of regular expression The matching condition of the regular expression that priority is the highest is the most.
8. the method for claim 1, it is characterised in that including:
Flow notice template is set;
According to described flow notice template, described data on flows is generated flow notification message;
Described flow notification message is sent to user.
9. the device being used for obtaining customer flow information, it is characterised in that including:
Flow note acquisition module, for obtaining the note relevant to flow information of operator's transmission and carrying Take short message text information;
Canonical formula matching module, for by described short message text information be used for capturing the canonical of data on flows Expression formula carries out canonical coupling;
Canonical formula sets up module, if for not matching data on flows, then built based on default canonical formula Legislate then mates with described short message text information, determines the flow key word relevant to data on flows also New regular expression is set up according to described flow key word;
Wherein, described canonical formula matching module captures described short message text by described new regular expression Data on flows in information.
10. the server being used for obtaining customer flow information, it is characterised in that:
Including as claimed in claim 9 for obtaining the device of customer flow information.
CN201610483695.2A 2016-06-27 2016-06-27 Method, device and server for obtaining user traffic information Pending CN105916127A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610483695.2A CN105916127A (en) 2016-06-27 2016-06-27 Method, device and server for obtaining user traffic information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610483695.2A CN105916127A (en) 2016-06-27 2016-06-27 Method, device and server for obtaining user traffic information

Publications (1)

Publication Number Publication Date
CN105916127A true CN105916127A (en) 2016-08-31

Family

ID=56759801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610483695.2A Pending CN105916127A (en) 2016-06-27 2016-06-27 Method, device and server for obtaining user traffic information

Country Status (1)

Country Link
CN (1) CN105916127A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375972A (en) * 2016-11-29 2017-02-01 北京瑞星信息技术股份有限公司 Analyzing method and system for flow short message of service provider
CN108804487A (en) * 2017-12-28 2018-11-13 中国移动通信集团公司 A kind of method and device of extraction target character
CN108810299A (en) * 2018-05-30 2018-11-13 连尚(新昌)网络科技有限公司 A kind of method, medium and the equipment of information parsing
CN109068286A (en) * 2018-05-31 2018-12-21 连尚(新昌)网络科技有限公司 A kind of method, medium and the equipment of information parsing
CN110267222A (en) * 2019-05-24 2019-09-20 深圳壹账通智能科技有限公司 The methods of exhibiting and device of short message bill
CN110941703A (en) * 2019-12-03 2020-03-31 南京烽火星空通信发展有限公司 Integrated resume information extraction method based on machine learning and fuzzy rules
CN111768788A (en) * 2020-06-28 2020-10-13 北京字节跳动网络技术有限公司 Method, apparatus, electronic device, and computer-readable medium for converting information
CN113704576A (en) * 2021-09-03 2021-11-26 上海森亿医疗科技有限公司 Matching method, system and terminal based on visual regular expression rule
CN115563964A (en) * 2022-11-10 2023-01-03 北京泰迪熊移动科技有限公司 Regular short message text generation method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977365A (en) * 2010-11-16 2011-02-16 北京瓦力网络科技有限公司 Method and system for indicating residual mobile phone Internet traffic
CN102752398A (en) * 2012-07-18 2012-10-24 腾讯科技(深圳)有限公司 Method and system for resolving flow value, terminal and server
CN104159209A (en) * 2014-08-01 2014-11-19 北京奇虎科技有限公司 Data traffic calibration method and device for mobile terminal
CN104994541A (en) * 2015-05-22 2015-10-21 小米科技有限责任公司 Network flow correction method and device
CN105554713A (en) * 2015-12-11 2016-05-04 小米科技有限责任公司 Method and device for reminding flow
CN105578512A (en) * 2016-03-24 2016-05-11 北京奇虎科技有限公司 Mobile terminal flow calibration method and apparatus thereof, and flow server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977365A (en) * 2010-11-16 2011-02-16 北京瓦力网络科技有限公司 Method and system for indicating residual mobile phone Internet traffic
CN102752398A (en) * 2012-07-18 2012-10-24 腾讯科技(深圳)有限公司 Method and system for resolving flow value, terminal and server
CN104159209A (en) * 2014-08-01 2014-11-19 北京奇虎科技有限公司 Data traffic calibration method and device for mobile terminal
CN104994541A (en) * 2015-05-22 2015-10-21 小米科技有限责任公司 Network flow correction method and device
CN105554713A (en) * 2015-12-11 2016-05-04 小米科技有限责任公司 Method and device for reminding flow
CN105578512A (en) * 2016-03-24 2016-05-11 北京奇虎科技有限公司 Mobile terminal flow calibration method and apparatus thereof, and flow server

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375972A (en) * 2016-11-29 2017-02-01 北京瑞星信息技术股份有限公司 Analyzing method and system for flow short message of service provider
CN106375972B (en) * 2016-11-29 2019-04-09 北京瑞星网安技术股份有限公司 Operator's flow short message analytic method and system
CN108804487A (en) * 2017-12-28 2018-11-13 中国移动通信集团公司 A kind of method and device of extraction target character
CN108810299B (en) * 2018-05-30 2020-06-09 连尚(新昌)网络科技有限公司 Information analysis method, medium and equipment
CN108810299A (en) * 2018-05-30 2018-11-13 连尚(新昌)网络科技有限公司 A kind of method, medium and the equipment of information parsing
CN109068286B (en) * 2018-05-31 2021-08-13 上海尚往网络科技有限公司 Information analysis method, medium and equipment
CN109068286A (en) * 2018-05-31 2018-12-21 连尚(新昌)网络科技有限公司 A kind of method, medium and the equipment of information parsing
CN110267222A (en) * 2019-05-24 2019-09-20 深圳壹账通智能科技有限公司 The methods of exhibiting and device of short message bill
CN110941703A (en) * 2019-12-03 2020-03-31 南京烽火星空通信发展有限公司 Integrated resume information extraction method based on machine learning and fuzzy rules
CN111768788A (en) * 2020-06-28 2020-10-13 北京字节跳动网络技术有限公司 Method, apparatus, electronic device, and computer-readable medium for converting information
CN111768788B (en) * 2020-06-28 2023-08-22 抖音视界有限公司 Method, apparatus, electronic device, and computer-readable medium for converting information
CN113704576A (en) * 2021-09-03 2021-11-26 上海森亿医疗科技有限公司 Matching method, system and terminal based on visual regular expression rule
CN113704576B (en) * 2021-09-03 2024-02-20 上海森亿医疗科技有限公司 Matching method, system and terminal based on visual regular expression rule
CN115563964A (en) * 2022-11-10 2023-01-03 北京泰迪熊移动科技有限公司 Regular short message text generation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105916127A (en) Method, device and server for obtaining user traffic information
CN202351736U (en) Desktop intelligent terminal for digital conference
CN103095753A (en) Customer service system and customer service push method
CN106100972A (en) A kind of message treatment method, system, first terminal and the second terminal
CN102546905A (en) Mobile terminal, method for realizing screen capture in same and system
CN102054033A (en) Expression search engine, expression management system using same and expression management method
CN105760399A (en) Data retrieval method and device
CN104158945A (en) Conversation information obtaining method, device and system
CN103179245B (en) Incoming phone number identification system and method
CN102984050A (en) Method, client and system for searching voices in instant messaging
CN104468941A (en) Information display method and device
CN105912358A (en) Intelligent electronic device and setting method thereof
CN104933508A (en) Mobile prosecutorial office affairs handling system and method
CN101546247A (en) Contact person information displaying method, contact person information displaying device and mobile terminal
CN106843817A (en) A kind of intelligent display method and device of mobile terminal desktop component
CN107734160A (en) A kind of language mutual aid method based on smart mobile phone
CN108538289A (en) The method, apparatus and terminal device of voice remote control are realized based on bluetooth
CN110677540A (en) Intelligent voice recognition management system for consultation telephone of medical institution
CN106126713A (en) Wearable device and synchronous applications message display method thereof
CN101924815A (en) 3G MOA phone middleware embedded system
CN202102435U (en) Information-searching device for mobile equipment
CN105721289A (en) Display method of function module in message communication accessory column
CN106550084B (en) Directory number format processing method, system and its equipment
CN107808005A (en) Processing method, device and the storage medium of human resource data
CN105578512A (en) Mobile terminal flow calibration method and apparatus thereof, and flow server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160831