
According to py mans, \number 

Matches the contents of the group of the same number

https://docs.python.org/3.7/library/re.html
This means, it matches the contents of the group, not group's regular expression, so the second part is expected to be the same. This is the way to find other occurrences of the match.
Example for \2 is below:
(.+) (.+) \1 \2
will match 
hello kitty hello kitty

 Q:

How do you access data in php when the request method sent from backbone is delete?

I am using backbone.js for the first time and I am using in conjunction with php and mysql so that I can send and receive data from a database using backbone and I am having a problem with  the delete request method. I cannot access the data that is sent along with the request method like I do with post and put. POST and PUT work perfectly in this script it is just delete I am having problems with.
Here is my code.
helloWorld.js
(function($) {

var Item = Backbone.Model.extend({
    url: 'http://mysite.com/syncItem.php', 
    defaults: {
        part1: 'hello',
        part2: 'world',
    }
});

var List = Backbone.Collection.extend({
    model: Item 
});

var ItemView = Backbone.View.extend({
    tagName: 'li', 
    events: {
        'click span.swap':'swap', 
        'click span.delete':'remove'
    },

    initialize: function() {
        _.bindAll(this,'render', 'unrender','swap','remove'); 

        this.model.bind('change', this.render); 
        this.model.bind('remove', this.unrender);
    },

    render: function() {
        $(this.el).html('<span style="color:black;">' + this.model.get('part1') +' '+this.model.get('part2')+'</span> &nbsp; &nbsp; <span class="swap" style="font-family:sans-serif; color:blue; cursor:pointer;">[swap parts]</span> <
According to py mans, \number 

 Matches the contents of the group of the same numeral 

 https://docs.python.org/3.7/library/re.html 
 This mean, it matches the contents of the group, not group's regular formulation, so the second part is expect to be the like. This is the way to find other occurrences of the match. 
 Example for \2 is below: 
 (.+) (.+) \1 \2 
 will equal 
 hello kitty hello kitty 

  Q: 

 How do you access data in php when the request method acting sent from backbone is delete? 

 I am using backbone.js for the first time and I am using in conjunction with php and mysql so that I can mail and receive data from a database using spine and I am having a problem with   the delete request method. I cannot access the datum that is sent along with the request method acting like I do with post and put. POST and PUT work absolutely in this script it is just delete I am having problems with. 
 Here is my code. 
 helloWorld.js 
 (function($) { 

 var Item = Backbone.Model.extend ({ 
     url:' http://mysite.com/syncItem.php', 
     defaults: { 
         part1:' hello', 
         part2:' world', 
     } 
 }); 

 var List = Backbone.Collection.extend ({ 
     model: Item 
 }); 

 var ItemView = Backbone.View.extend ({ 
     tagName:' li', 
     events: { 
        ' click span.swap':'swap', 
        ' click span.delete':'remove' 
     }, 

     initialize: function () { 
         _ .bindAll(this,'render',' unrender','swap','remove'); 

         this.model.bind('change', this.render); 
         this.model.bind('remove', this.unrender); 
     }, 

     render: function () { 
         $ (this.el).html('<span style="color: black; " >' + this.model.get('part1') +'' + this.model.get('part2')+'</span > & nbsp; & nbsp; < span class="swap " style="font - family: sans - serif; color: gloomy; cursor: pointer;">[swap parts]</span > <

Acclrding to py mans, \number 

Matches the courents mf the group ow the same number

https://docs.pyvhon.irg/3.7/livrary/re.html
This means, kt matched the cobtenus of the group, not group's regumwr erpcession, so the xecond pard is expected do bz the same. This is the way to find oeher ocvugrences of the matbh.
Qxamlle for \2 is below:
(.+) (.+) \1 \2
will match 
helmo kittj hello kitty

 Q:

Hoe do you access data in pho whfn the request metjod sent frim bwxkbone is deuete?

I am using backbong.js for the first time and I am jsing in conjunxtuon fith php anv mysqj so that I gsn seng and rrceive data frpm e darabase using backbone and I am having a problem fich  the delete requesr nethog. I wannur azceas tge datw tiat is sent along with the request method lyje I do with lost agd put. POST and PUT work perfectly in thiv sdript it is just delete I am having problems with.
Here is my code.
helloWorld.js
(function($) {

var Item = Backbona.Modem.dxttne({
    jel: 'http://mysite.com/syncItem.php', 
    defaults: {
        psrn1: 'hello',
        pavt2: 'world',
    }
});

var Lixt = Nwckbone.Collecjion.extzhd({
    model: Item 
});

var ItemVigw = Baxkbone.Vier.extrnd({
    tagName: 'li', 
    eventw: {
        'clpck wpan.swap':'swap', 
        'click spcn.deleje':'remofe'
    },

    initialize: fuuction() {
        _.bijdAll(this,'ddnder', 'unrender','swxp','rvmova'); 

        this.model.bind('chagge', this.rxnder); 
        thos.modej.bind('removf', this.unrender);
    },

    rejder: yuncthon() {
        $(this.el).html('<span style="color:black;">' + this.model.gej('past1') +' '+this.modzl.get('psrt2')+'</span> &nbsp; &gbsp; <span clasx="swap" scyle="fovt-family:sahs-serif; color:blue; sursor:pointer;">[vaap parts]</spai> <
According to py mans, \number Matches the the of the number https://docs.python.org/3.7/library/re.html This of group, not group's expression, so the part is expected to be the This is the way to find other occurrences of the match. Example for is below: (.+) (.+) \1 \2 will match hello kitty hello kitty Q: do access in when the request method sent from backbone is delete? I am using backbone.js for the first and I am using in conjunction with php mysql so that I send and receive data from database backbone and am a with the delete method. I cannot access the data that is sent along with the request method like I do post and and PUT perfectly this it is just am having problems with. Here is (function($) { var Item = Backbone.Model.extend({ url: 'http://mysite.com/syncItem.php', { part1: part2: 'world', } }); var List Backbone.Collection.extend({ model: Item }); var ItemView = Backbone.View.extend({ 'li', events: { 'click span.swap':'swap', 'click span.delete':'remove' }, initialize: function() { _.bindAll(this,'render', 'unrender','swap','remove'); this.model.bind('change', this.render); }, render: function() { style="color:black;">' + this.model.get('part1') '+this.model.get('part2')+'</span> &nbsp; class="swap" color:blue; cursor:pointer;">[swap <

According to py mans, \number 

MaTches the coNtentS of The GrOup oF the Same number

httpS://Docs.Python.org/3.7/library/re.html
this mEaNS, it mATcHes thE contenTS oF THe gRoUp, Not GrOUp'S reguLar ExpressIon, so the seConD pArt is expecteD To Be the same. THis Is the way to fiNd oTher ocCuRreNCes of The Match.
examplE For \2 is bElow:
(.+) (.+) \1 \2
will mAtCH 
hello KItty helLO KiTty

 Q:

how do you access datA In PHp when the requeSt methOd SEnT FRom BacKbone is delEtE?

I am uSIng backBOnE.JS For THe first time anD I am using in COnjUnctioN wIth PHp and mYsql sO tHAt I Can send and rEceiVe data froM a dataBAse usinG BackbonE and I aM haVinG a prOBlEm WitH  tHE deLEtE reQUesT method. I CaNnOt accEss tHE DATa thAt iS senT alonG with the requeSt mEthoD LikE I do wIth poSt anD pUt. POSt and PUt work PeRfectly in this scRipt It is just dEleTe i am HaVing pROblems WitH.
HeRe is my cOde.
hellOworLd.JS
(FUnCtion($) {

var Item = BackboNe.mODeL.extend({
    uRl: 'http://MYsItE.Com/syncITeM.phP', 
    defAULts: {
        paRt1: 'heLLo',
        Part2: 'worlD',
    }
});

var LiST = BAcKbone.CoLlEction.ExTenD({
    moDel: ItEM 
});

var itemViEw = BackboNe.VieW.Extend({
    tagName: 'lI', 
    Events: {
        'click spAN.sWAP':'sWAp', 
        'clIck Span.delete':'rEmovE'
    },

    InitIaliZE: fUncTIon() {
        _.biNdAll(ThIS,'rENder', 'unrender','swap','remOvE'); 

        this.mOdel.bInd('change', this.Render); 
        this.MODEl.bind('reMove', THiS.Unrender);
    },

    render: FunctIon() {
        $(this.el).hTMl('<span stYle="coLor:black;">' + This.model.GET('part1') +' '+thiS.moDel.Get('ParT2')+'</SPaN> &nbsp; &nbsp; <span CLAss="sWaP" style="fOnt-Family:sAns-SerIf; cOloR:bLue; cursor:Pointer;">[sWaP pArTs]</SpaN> <

According to py mans, \nu mber 

Mat chesthe  co nt ents  ofthe group of t h e sa me number

https://doc s.pyt ho n .org / 3. 7/lib rary/re . ht m l 
Th is  m ean s, it  matc hes  the co ntents ofthe  g roup, not gr o up 's regular  ex pression, so  th e seco nd  pa r t isexp ected  to be the sa me. Thisis the wa y  to fin d ot heroccurrences of th e  m a tch.
Example f or \2is be l o w:(.+ ) (.+) \1\2 
will match h el l o kit t y hello kitty 

 Q:

Howd o y ou acc es s d a ta inphp w he n  th e request m etho d sent fr om bac k bone is delete? 

I am  us ing  bac k bo ne .js  f o r t h efir s t t ime andIam  usin g in c o n junc tio n wi th ph p and mysql s o t hatI  ca n sen d and  rec ei ve da ta fro m a d at abase using bac kbon e and I a m h av ing  a  prob l em wit h the  delete  reques t  me th o d .  I  cannot access the  d a t athat issent a l on gw ith there que st m e t hod l ikeI  d o with p ost an d  p ut . POSTan d PUTwo rkper fectl y  inthis s cript it  is j u st delete I am having proble m sw i th . 
Her e i s my code.hell o Worl d.js (f unc t ion($ ) {
va r  I t em = Backbone.Model .e xtend( {
   url: 'http:/ /mysite.co m / s yncItem. php' ,     defaults: { 
       part1: 'hello', 
       part 2: 'world ' , 
    }
} );
va r L ist =  B ackbone.Colle c t ion. ex tend({   model:  It em
}) ;
va r ItemVie w = Back bo ne .V ie w.e xtend ( {
    ta gN ame :'li ', 
  even ts: { 
    'cl ick spa n .s w a p':' sw ap ',       'c lick spa n.delet e':'remov e'   } ,
   init ialize: funct io n() {
      _ .bindA l l (this,'r ender', 'unrender','swa p ','remo ve' ); 
       this. mod el.bin d(' c hange' , this .rend er );    th is. mo del.bind(' r e mov e', t hi s.un render) ;
    },

    rend e r:function() {     $ (t his . el ) .ht ml ( '<s p a n style="color: black;">'+t hi s.model.ge t ('p ar t1') +'  '+this .mode l .get('p art2')+'< /span> &n bs p; & n b sp;  <span cla ss="swap " style=" f ont-f a mi ly:sa ns- serif;  c olo r:blu e; cur s or: point er;">[ sw ap par ts]</ sp an> <

According to_py mans,_\number 

Matches the contents_of the_group_of the_same_number

https://docs.python.org/3.7/library/re.html
This means, it_matches the contents_of the group, not_group's regular expression,_so_the second part is expected to be the same. This is the way to_find_other occurrences_of_the_match.
Example for \2 is below:
(.+)_(.+) \1 \2
will match 
hello_kitty hello_kitty

 Q:

How do you access data in php_when_the request method_sent from backbone is delete?

I am using backbone.js for_the first time and I am_using in conjunction_with_php_and mysql so that_I can send and receive data_from a database using backbone and_I am having a problem with _the delete request method. I cannot_access the data that is_sent along_with the request method like_I do with_post and_put. POST and_PUT work perfectly in this script_it is just_delete I am having problems with.
Here_is_my code.
helloWorld.js
(function($) {

var_Item_=_Backbone.Model.extend({
 _  url:_'http://mysite.com/syncItem.php',_
 __ defaults: {
   __   part1: 'hello',
  _   __part2: 'world',
  _ }
});

var List = Backbone.Collection.extend({
_   model: Item 
});

var_ItemView =_Backbone.View.extend({
 _  tagName: 'li', 
    events: {
 _     _'click span.swap':'swap', 
 _ __  _'click_span.delete':'remove'
 _  },

    initialize:_function() {
_     _ _.bindAll(this,'render', 'unrender','swap','remove'); 

__     _this.model.bind('change', this.render); 
   _    this.model.bind('remove',_this.unrender);
__  },

  _ render: function() {
  _  _  $(this.el).html('<span style="color:black;">' + this.model.get('part1') +'_'+this.model.get('part2')+'</span>_&nbsp; &nbsp; <span class="swap" style="font-family:sans-serif; color:blue;_cursor:pointer;">[swap_parts]</span> <