.net - how to extract string between two symbols -


this question has answer here:

i have string this

*pmgfec«                                                         1.1gurrala/kalpana*adt  2.1gurrala/bhargavsriram reddy*adt      3.1gurrala/tejasvi reddy*cnn                                    1 dl  32t 30may q atlams hk3   745p 1040a  31may f                                                         /dcdl*f9l4qb /e   2 kl 871n 31may f amsdel hk3   150p  130a  01jun j                                                         /dckl*7xzrbf /e   3 ai 560g 01jun j delhyd hk3   650a  850a /dcai*ych0f /e        4 9w 452w 08aug q hydbom hk3   605p  735p /dc9w*pyzjqh /e       5 dl  49t 09aug f bomams*hk3   110a  700a /dcdl*f9l4qb /e       6 dl9390t 09aug f amsdfw*hk3  1045a  155p /dcdl*f9l4qb /e       operated klm royal dutch airlines                             7  oth yy 09apr w gk1  nyc                                      tkt/time limit                                                   

i want pmgfec *pmgfec« using regex how can that

at present using \*\w{6}\« fetch *pmgfec«

also

i want fetch 1568.41 between usd , last space how can that

name    pq type tkt des              created       tkt ttl        1.1     1                            14may usd   1568.41         2.1     1                            14may usd   1568.41         3.1     2  cnn ch25                  14may usd   1363.41 

instead of using capturing group can use lookaround assertions match wanted part:

(?<=\*)\w{6}(?=\«) 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -