Wuu Posted May 16, 2009 Report Share 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 Link to comment Share on other sites More sharing options...
bubu Posted May 16, 2009 Report Share 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 Link to comment Share on other sites More sharing options...
Wuu Posted May 17, 2009 Author Report Share Posted May 17, 2009 Piedo man vajag caur Regexp ,ķimerējos ar codepress Quote Link to comment Share on other sites More sharing options...
v3rb0 Posted May 17, 2009 Report Share Posted May 17, 2009 /(^BRAIN_.*?)[|\s]/m Quote Link to comment Share on other sites More sharing options...
p4F Posted May 17, 2009 Report Share Posted May 17, 2009 http://www.gskinner.com/RegExr/ Quote Link to comment Share on other sites More sharing options...
indoom Posted May 18, 2009 Report Share Posted May 18, 2009 Kāpēc AJAX sadaļā? Quote Link to comment Share on other sites More sharing options...
Wuu Posted May 19, 2009 Author Report Share Posted May 19, 2009 nē nepalīdz :( Quote Link to comment Share on other sites More sharing options...
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.