I want to remove the invoice date from the text of the invoice.
I have a string with the full invoice text, and I do not know where it is in date text or date is formatted.
How do I attack this problem? I am using C #.
How about something like this? It handles only a specific format but regex can be adjusted for other formats.
Reggae RG = new reggae (@ "[01]? \ D [/ -] [0123]? \ D [/ -] \ d {2}"); Match me = rg Match (string); M.ToString (); Here is a question with a part of that which can help regexes.
No comments:
Post a Comment