How do regular expressions divide strings into arbitrary groups?

for example:

var str="1234HAGSFC"
:334
123 4HA GSFC
:4321
1234 HAG SF C
...


take 334 as an example:

334 
var str="1234HAGSFC";
var regex = /(.{3})(.{3})(.{4})/

str.match(regex); //["1234HAGSFC", "123", "4HA", "GSFC", index: 0, input: "1234HAGSFC", groups: undefined]

returns an array, and the middle part is the

you need.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36286-2b53b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36286-2b53b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?