Wuu Posted May 16, 2009 Report Posted May 16, 2009 BRAIN_VENDOR_OFFDUTY ATTR_BLESSED LAYER_FLAG_BANDAGE REGION_ANTIMAGIC_ALL STATF_CONJURED Kā man atrast vārdus kas sākas ar noteiktu stringu BRAIN_ ATTR_ LAYER_ REGION_ STATF_.... la meklējot /(BRAIN_.*)/ atrod BRAIN_VENDOR_OFFDUTY visādi mēģināju ,bet atrod vainu BRAIN_VENDOR_OFFDUTY un visu tālā tekstu ,vai tikai BRAIN_! Esmu diezgan izstudējis google atbildi neatradu :( Quote
bubu Posted May 16, 2009 Report Posted May 16, 2009 Tam nevajag nekādus regexpus. Pietiek ar parastu indexOf metodi: if (x.indexOf(y) == 0) { x sākas ar y } Quote
Wuu Posted May 17, 2009 Author Report Posted May 17, 2009 Piedo man vajag caur Regexp ,ķimerējos ar codepress Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.