Find: (\d+)
Replace \1 note, there is a space behind \1 HTH Lee On Jul 30, 2006, at 1:10 PM, TjL wrote:
I know how to make a RegEx to replace something, but I don't know how to do this: namely, insert a space after each number ... well, by "number" I mean "24" and "25" and "26" not "2" and "4" and "2" and "5" .... probably just easier to show you what I am working with, here's an example (note: this just happens to be the text that I am working with for next Sunday, it's not intended as a message to anyone here in particular) 24So when the crowd saw that neither Jesus nor his disciples were there, they themselves got into the boats and went to Capernaum looking for Jesus. 25When they found him on the other side of the sea, they said to him, "Rabbi, when did you come here?" 26Jesus answered them, "Very truly, I tell you, you are looking for me, not because you saw signs, but because you ate your fill of the loaves. 27Do not work for the food that perishes, but for the food that endures for eternal life, which the Son of Man will give you. For it is on him that God the Father has set his seal." and here's what I want it to look like when I am done 24 So when the crowd saw that neither Jesus nor his disciples were there, they themselves got into the boats and went to Capernaum looking for Jesus. 25 When they found him on the other side of the sea, they said to him, "Rabbi, when did you come here?" 26 Jesus answered them, "Very truly, I tell you, you are looking for me, not because you saw signs, but because you ate your fill of the loaves. 27 Do not work for the food that perishes, but for the food that endures for eternal life, which the Son of Man will give you. For it is on him that God the Father has set his seal." I know that [0-9] will match numbers, but how do I match and *keep* numbers in the "replacement" process? TjL -- ------------------------------------------------------------------ Have a feature request? Not sure the software's working correctly? If so, please send mail to <[EMAIL PROTECTED]>, not to the list. List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml> List archives: <http://www.listsearch.com/BBEditTalk.lasso> To unsubscribe, send mail to: <[EMAIL PROTECTED]>
-- ------------------------------------------------------------------ Have a feature request? Not sure the software's working correctly? If so, please send mail to <[EMAIL PROTECTED]>, not to the list. List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml> List archives: <http://www.listsearch.com/BBEditTalk.lasso> To unsubscribe, send mail to: <[EMAIL PROTECTED]>
