Re: Regular expression to split a long string
- From: "Ken Tucker [MVP]" <vb2ae@xxxxxxxxxxxxx>
- Date: Tue, 16 Aug 2005 19:36:10 -0400
Hi,
Maybe the string's split function would work for you
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemstringclasssplittopic.asp
Ken
-----------------------
"Kerry" <nice.try@xxxxxxxxxxx> wrote in message
news:%23zlI5droFHA.2472@xxxxxxxxxxxxxxxxxxxxxxx
> Please help if you can.
>
> I have a web form that has a multiline input box 30 columns by 15 rows.
> The
> maximum length of a user's entry can be 450 characters. I need to read
> this
> data into a series of 15 database fields (each 30 characters wide). I
> know
> this amounts to poor normalization, btu the system is old and cannot be
> maintained under the current project.
>
> I need to accept the user's entry in this textbox and split it into (up
> to)
> 15 strings, no wider than 30 characters each. Ideally, splits will occur
> where newline characters occur or after each 30th character. I have
> experimented with many different regular expressions similar to
>
> "((?m:(.{1,30})\n?){1,15})"
>
> but I can't get the separate strings.
>
> Has anyone tried something like this successfully?
>
>
>
.
- References:
- Regular expression to split a long string
- From: Kerry
- Regular expression to split a long string
- Prev by Date: RE: Decimal.Parse and Decimal.ToString Methods
- Next by Date: ev.graphics
- Previous by thread: Regular expression to split a long string
- Next by thread: Re: Regular expression to split a long string
- Index(es):
Relevant Pages
|