i'm a code idiot and i'm on the scrounge (1 Viewer)

egg_ said:
I'm no expert on regular expressions (they usually involve some trial-and-error for me) but \n is the linux newline character in preg_*() functions.
So instead of "/\[bold\](.+?)\[\/b\]/" you'd have "/\[bold\]([.\n]+?)\[\/b\]/"

tsk. jeeeeez. that doesnt even work. thanks anyway though! :heart:
 

Users who are viewing this thread

Warning! This thread is more than 20 years ago old.
It's likely that no further discussion is required, in which case we recommend starting a new thread. If however you feel your response is required you can still do so.

21 Day Calendar

Alasdair Roberts/Harry Gorski-Brown
The Cobblestone
77 King St N, Smithfield, Dublin, D07 TP22, Ireland
Back
Top