Click here to Skip to main content
15,889,266 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys, i am new to boost libraries regular expression.for me its something complicated.I need to separate word form my format.
The format is

Dear customer {Customer.Customer_Id:D} offer {Offer.Offer_Id:D} From....

i need to separate all words and {Customer.Customer_Id:D} as a separate word and process is going on until the last word occurs.

I try my best but i cant get the general expression for parsing the above format

If you know tell me guys...

Thanks in advance
ganesh_IT
Posted
Updated 24-Mar-11 20:07pm
v2
Comments
Wendelius 25-Mar-11 2:17am    
If you want to modify your question, just edit it, don't post a new one
Prerak Patel 25-Mar-11 4:51am    
Try capturing groups as {([^\s]+)}
Don't post comments as answer...

1 solution

It is not much clear, but seems like you want to separate {Customer.Customer_Id:D}, {Offer.Offer_Id:D} from your format string.
If so, following expression will help you get there.
{[^\s]+}


If you don't want {} then capture groups
{([^\s]+)}
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900